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...
@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.
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..
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!
robinknipe 6 months ago
Excellent video..didnt know jni debugging would be this easy!! any chance you would show how to debug jni with eclipse cdt?
infinitecmdz 6 months ago
@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.
matthiasbuchner 6 months ago
Amazing post man!!! Really good...
amitjain976 9 months ago
Thank you so much. Your video is great! Now I know how to "unleash the monster" ;)
pauloabelha 10 months ago
fantastic video, ty
pgrazek 11 months ago
really nice done, thanks a lot :)
zpinacz 1 year ago
@zpinacz You are welcome. I hope it helped. Thanks for leaving a comment.
matthiasbuchner 1 year ago
Thank you very much for this tutorial! and I love your accent :).
Redjiggly 1 year ago
thanks ...
vikasbisla 1 year ago
how to create a 64 bit dll using visual c++ 2010 express edition.
vikasbisla 1 year ago
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!
matthiasbuchner 1 year ago
@vikasbisla If you can't get the DLL to compile in 64-bit, you can try to switch to a 32-bit JVM.
matthiasbuchner 1 year ago
thanks for your reply ....
vikasbisla 1 year ago
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 1 year ago
@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!
matthiasbuchner 1 year ago
This was very good, thank you.
hannesje2 1 year ago