A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
this week in the
C++ DLL using JNI problem
Joined: May 09, 2013
May 14, 2013 02:35:50
I have a signed
, 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?
Joined: Apr 19, 2013
May 14, 2013 04:20:10
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
Joined: Oct 08, 2010
May 14, 2013 04:30:28
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
loadLibrary.sunec - access denied
How to use VB .dll in java
ActiveX to Java
EXCEPTION_ACCESS_VIOLATION when calling jni method in Weblogic
signed applet issue
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014