Added: 1 year ago
From: matthiasbuchner
Views: 8,223
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (18)

Sign In or Sign Up now to post a comment!
  • Just the kind of thing I was looking for. Sadly I couldn't get the example to work. Followed every step to the letter, then went to run the result and all I got was a damn "Exception in thread "main" java.lang.UnsatisfiedLinkError­:" message. I tried debugging, but only managed to find out that the dll loads without problems, but exceptions are thrown as soon as any of the native methods are called...

    Bloody frustrating!

  • Excellent video..didnt know jni debugging would be this easy!! any chance you would show how to debug jni with eclipse cdt?

  • @infinitecmdz For those you don't know Eclipse CDT is an IDE for C/C++ environment. infinitecmdz, thanks for the feedback but I really don't know if I will have time to make it anytime soon; I have a pile of pending projects. If others are interested, please leave a comment here. You can follow my blog at codebazaar.blogspot.com to get the latest updates.

  • Amazing post man!!! Really good...

  • Thank you so much. Your video is great! Now I know how to "unleash the monster" ;)

  • fantastic video, ty

  • really nice done, thanks a lot :)

  • @zpinacz You are welcome. I hope it helped. Thanks for leaving a comment.

  • Thank you very much for this tutorial! and I love your accent :).

  • thanks ...

  • how to create a 64 bit dll using visual c++ 2010 express edition.

  • Visual Studio Express Edition 2010 does not support the compilation of 64-bit DLL by default. You need to install the Windows SDK.

    Try to google "Compiling into 64 bit DLLs with Microsoft VC++ 2010 Express", you will find more details on the MSDN forum. I can't put the link here.

    Good luck!

  • @vikasbisla If you can't get the DLL to compile in 64-bit, you can try to switch to a 32-bit JVM.

  • thanks for your reply ....

  • when i try to load dll its gives exception,, java.lang.UnsatisfiedLinkError­: C:\Users\Vikas\workspace\test\­TestJni.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform,,, can u please help..

  • @vikasbisla Are you trying to load a 64-bit DLL from a 32-bit JVM? I would try to re-compile TestJni.dll to a 32-bit DLL or switch to a 64-bit JVM.

    Thanks for watching the video!

  • This was very good, thank you.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more