System.loadLibrary in gij problems
Oskar Liljeblad
osk@hem.passagen.se
Sun Apr 9 01:45:00 GMT 2000
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)
More information about the Java
mailing list