This is the mail archive of the java-discuss@sourceware.cygnus.com 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]

System.loadLibrary in gij problems


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)

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