• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JNI

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am doing a sample program using JNI to interface java and C++.I encountered the following error while running Main.java.
Exception in thread "main" java.lang.UnsatisfiedLinkError: /root/java/lav/libOrderImp.so: /root/java/lav/libOrderImp.so: undefined symbol: __8WmsClass
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1360)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1284)
at java.lang.Runtime.loadLibrary0(Runtime.java:473)
at java.lang.System.loadLibrary(System.java:777)
at Mainclass.<clinit>(Mainclass.java:4)
Please help..
 
Lavanya Srivatsa
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have found the solution to my problem.The problem was that I had declared the constructor and destructor for my C++ class but had not given its implementation.Hence, in JNI, it threw an UnsatisfiedLinkError:undefined symbol...
I thought I should post the solution so that it may help others too..
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yep, could u post ur solution plz??
it may help me greatly,thx.
 
reply
    Bookmark Topic Watch Topic
  • New Topic