dcsimg
UnsatisfiedLinkError-JNI/Linux
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, July 16, 2002 02:10 PM

I am getting the following error even after I have set the LD_LIBRARY_PATH and given the package names properly. my jave code and the native code are in different directories. Could this be the problem? Can someone help me out. Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/lib/li bcimlistener.so.1.3.2: /usr/local/lib/libcimlistener.so.1.3.2: undefined symbol: __tf12OW_Exception at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1480) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1404) at java.lang.Runtime.loadLibrary0(Runtime.java:772) at java.lang.System.loadLibrary   More>>
			
I am getting the following error even after I have set the LD_LIBRARY_PATH
and given the package names properly. my jave code and the native code are
in different directories. Could this be the problem? Can someone help me out.


Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/lib/li
bcimlistener.so.1.3.2: /usr/local/lib/libcimlistener.so.1.3.2: undefined symbol:
__tf12OW_Exception
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1480)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1404)
at java.lang.Runtime.loadLibrary0(Runtime.java:772)
at java.lang.System.loadLibrary(System.java:832)
at ui.EventViewer. (EventViewer.java:20)
   <<Less

Re: UnsatisfiedLinkError-JNI/Linux

Posted By:   Roy_G  
Posted On:   Wednesday, July 17, 2002 08:31 AM

I had the same problem, try the following.

1. put the xx.so file with the java code.

2. specify where to look for the xx.so file

e.g -Djava.library.path=

3. make sure you specify the native methods full name (I used typedef to shorten the methods signatures and messed all up)

hope it works

About | Sitemap | Contact