UnsatisfiedLinkError ( undefined Symbol)
843829Feb 13 2003 — edited Mar 25 2003I'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