Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNI with C++

 
padmanabh dongre
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
i am getting an exception java.lang.UnsatisfiedLinkError when i try to run a native method public native void exec( ). The implementation of this method is in C++ and all it does is prints "hello world". and interestingly when i implement the same method in C instead of C++, it works. can someone tell me why?? also plz suggest me a good book for JNI.
thanx
Padmanabh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic