I am using Solaris 2.7 and SunSpro CC 5.0 to compile my JNI
stuff. My Java application which uses JDK 1.2.2 calls into
the JNI routines.
My java application keeps failing with the below errors when
it executes the statement System.loadLibrary("foo");
where "foo" is libfoo.so.
It happens to JDK 1.3.0 as well. Any advice? Thanks a
million. I have checked to make sure all the paths
are set correctly to point to libfoo.so.
Exception in thread "main" [Dynamic-linking native method
java.lang.Object.getClass ... JNI]
[Dynamic-linking native method java.io.FileOutputStream.writeBytes ...
JNI]
java.lang.UnsatisfiedLinkError: no job in java.library.path
[Dynamic-linking native method java.lang.Throwable.printStackTrace0 ...
JNI]
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at org.omg.CORBA.ORB.<clinit>(ORB.java:10)
at server.main(server.java:66)
Sent via Deja.com http://www.deja.com/
Before you buy.