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