While passing -Djava.library.path=foobar to GCJ leads to the expected behaviour on linux, it seems to be ignored on windows. Actually System.getProperty("java.library.path") returns the correct value on both plattforms, but System.loadLibrary() only uses it on linux.
-- Summary: [win32] java.library.path broken Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mtrudel at gmx dot ch GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-mingw32 GCC target triplet: i686-pc-mingw32 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29150