This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
System.loadLibrary in gij problems
- To: java-discuss at sourceware dot cygnus dot com
- Subject: System.loadLibrary in gij problems
- From: Oskar Liljeblad <osk at hem dot passagen dot se>
- Date: Sun, 9 Apr 2000 10:41:30 +0200
- Cc: osk at hem dot passagen dot se
I'm generating a libgcjreadline.so library in my gcj API for readline.
This works fine when I compile test programs to native executables,
but when I use gij I get this error:
$ gij Keys
java.lang.UnsatisfiedLinkError: gcjreadline: file not found
at 0x400e9dda: java::lang::Throwable::Throwable(java::lang::String *) (/home/usel/Base/lib/libgcj.so.1)
at 0x400de842: java::lang::Error::Error(java::lang::String *) (/home/usel/Base/lib/libgcj.so.1)
...
at 0x400e2fe8: java::lang::Runtime::loadLibrary(java::lang::String *) (/home/usel/Base/lib/libgcj.so.1)
at 0x400e6e07: java::lang::System::loadLibrary(java::lang::String *) (/home/usel/Base/lib/libgcj.so.1)
In the main class, ReadLineReader (which the example program Keys uses),
I call System.loadLibrary("gcjreadline") in a static initializer.
I have the "libgcjreadline.so" in my current directory. If I use anything
else than System.loadLibrary("gcjreadline"), executing native Keys will
also fail with an error similar to the one above.
Oskar Liljeblad (osk@hem.passagen.se)