This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: java/lang/natRuntime.cc


> +      char* libraryPath = ::getenv ("LD_LIBRARY_PATH");

Sorry, but I don't think this is portable. For example,
on Windows, PATH is used to search for DLLs. My memory
is a bit hazy now, but on AIX it was something like
LD_LOAD_LIBRARY_PATH.


> +      // Initialize with prefix.
> +      sb->append (JvNewStringLatin1 (PREFIX "/lib"));

On Windows, this might be the "bin" folder (or maybe not,
depending on where the Win32 GCJ distributor decides to
put the DLLs).

Ranjit.

-- 
Ranjit Mathew          Email: rmathew AT hotmail DOT com

Bangalore, INDIA.      Web: http://ranjitmathew.tripod.com/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]