File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes C++ DLL using JNI problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "C++ DLL using JNI problem" Watch "C++ DLL using JNI problem" New topic

C++ DLL using JNI problem

Corne Vermeulen

Joined: May 09, 2013
Posts: 6
I have a signed java applet, using a dll by means of JNI.

The problem is, when using my new dll, the applet crashes on System.load() (No error, just stops working)
The old dll runs fine...

What could I be doing wrong?
Carles Gasques
Ranch Hand

Joined: Apr 19, 2013
Posts: 199

Difficult to say perhaps the headers have changed from old to new dll.
Could you try a standalone java main that load the dll? Perhaps is more verbose about the error.

In windows system you could check the Event Views / Security for some error event
or use the sysinternals tool procmon to monitorize unsuccessful operations

Best regards,

rohit chavan
Ranch Hand

Joined: Oct 08, 2010
Posts: 132

Also, check the version of java is in same architecture (32/64 bit) as that of the operating system and the created c++ code/DLLs.
I ahve observed , this causes a problem many a times.
I agree. Here's the link:
subject: C++ DLL using JNI problem
It's not a secret anymore!