public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/23761] New: java.library.path doesn't affect module loading path
@ 2005-09-07 12:30 fitzsim at redhat dot com
  2005-09-08 21:26 ` [Bug libgcj/23761] " cvs-commit at gcc dot gnu dot org
  2005-09-15 20:17 ` fitzsim at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: fitzsim at redhat dot com @ 2005-09-07 12:30 UTC (permalink / raw)
  To: java-prs

Setting java.library.path on the gij command line should set the module loader
path to the given argument.  Currently an attempt is made to do this in
natSystemProperties.cc:

  // If java.library.path is set, tell libltdl so we search the new
  // directories as well.  FIXME: does this work properly on Windows?
  ::java::lang::String *path =
newprops->getProperty(JvNewStringLatin1("java.library.path"));
  if (path)
    {
      char *val = (char *) _Jv_Malloc (JvGetStringUTFLength (path) + 1);
      jsize total = JvGetStringUTFRegion (path, 0, path->length(), val);
      val[total] = '\0';
      _Jv_SetDLLSearchPath (val);
      _Jv_Free (val);
    }

_Jv_SetDLLSearchPath in turn calls lt_dlsetsearchpath but this call does nothing
since lt_dlinit has not been called at this point in gij startup.

-- 
           Summary: java.library.path doesn't affect module loading path
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fitzsim at redhat dot com
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23761


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-09-15 20:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-07 12:30 [Bug libgcj/23761] New: java.library.path doesn't affect module loading path fitzsim at redhat dot com
2005-09-08 21:26 ` [Bug libgcj/23761] " cvs-commit at gcc dot gnu dot org
2005-09-15 20:17 ` fitzsim at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).