Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

UnsatisfiedLinkError ( undefined Symbol)

843829Feb 13 2003 — edited Mar 25 2003
I'm trying to work with a library that interfaces with my Mp3 player in linux. I've written a C++ class that uses these libraries etc... Specifically this Object calls certain methods to open and communicate with the device. So when I try to load the library i've called libNomad.so, i get this message:


Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/lib/libNomad.so: /usr/local/lib/libNomad.so: undefined symbol: NJB_Discover
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:832)
at Test.<clinit>(Test.java:12)

Now NJB_Discover is a function that I call in my Nomad Object. So I guess my question is am I doing something wrong or do I have to put a native prototype in my java file for every single function that gets called whether it's called in the java file or from my c++ file?? Any help would be appreciated.

Aaron Hagopian
aaronhagopian@msn.com
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 22 2003
Added on Feb 13 2003
10 comments
1,010 views