J
Jothi
Hi,
I am using MAC OSX 10.4 (imac G5).
I am trying to load a JNI library libxxx.jnilib through an applet.
The code is as follows...
System.loadLibrary("xxx");
I compiled, created jar & signed the same. I have placed the
libxxx.jnilib in the /Library/Java/Extensions/ also set
DYLD_LIBRARY_PATH to /Library/Java/Extensions.
I also tried by putting the libxxx.jnilib in
1)
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/
2) same folder where the java class & html files are present.
3) /usr/lib/java
For all the above cases I am getting following exception..
iMac:/Library/Java/Extensions root# appletviewer Test.htm
JNINetDirect instance created
java.lang.UnsatisfiedLinkError:
/Library/Java/Extensions/libNetDirect.jnilib:
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1495)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at JNINetDirect.init(JNINetDirect.java:32)
at sun.applet.AppletPanel.run(AppletPanel.java:353)
at java.lang.Thread.run(Thread.java:552)
The same code if I make it as Java Application it is running
fine....Any idea?
Please help me regarding this...
Regards,
Jothi
I am using MAC OSX 10.4 (imac G5).
I am trying to load a JNI library libxxx.jnilib through an applet.
The code is as follows...
System.loadLibrary("xxx");
I compiled, created jar & signed the same. I have placed the
libxxx.jnilib in the /Library/Java/Extensions/ also set
DYLD_LIBRARY_PATH to /Library/Java/Extensions.
I also tried by putting the libxxx.jnilib in
1)
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/
2) same folder where the java class & html files are present.
3) /usr/lib/java
For all the above cases I am getting following exception..
iMac:/Library/Java/Extensions root# appletviewer Test.htm
JNINetDirect instance created
java.lang.UnsatisfiedLinkError:
/Library/Java/Extensions/libNetDirect.jnilib:
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1495)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at JNINetDirect.init(JNINetDirect.java:32)
at sun.applet.AppletPanel.run(AppletPanel.java:353)
at java.lang.Thread.run(Thread.java:552)
The same code if I make it as Java Application it is running
fine....Any idea?
Please help me regarding this...
Regards,
Jothi