S
SPG
Hi,
I have a java applet that makes calles via JNI to a C++ DLL.
This aplet is signed for both SUN and MS JVMs.
The DLL is packed inside the JAR file and downloaded onto the user's
harddrive into the user.home directory, then loaded.
Using the SUN JVMs, this works fine. The user has to accept the certifiacte,
then the user.home dir is located, we extyract the DLL from the jar and then
call loadLibrary(). Works a treat.
The exact same set of code does the following:
1. ClassA.class.getResource("/" + dll); returns a path to
c:\windows\java\trustlib for the dll resource path, not the cab file it is
stored in (SUN JVM returns the url to the entry in the jar)
2. I manually copy the dll to user.home (MS Version says this is
"C:\windows\java"). A call to System.loadLibrary("MyDLL") throws an
unsatisfied link error saying the dll is not on the shared path.
I have googled a lot on this and found only similar questions to this, but
no answers.
Has anyone got a clue where what and why?
Steve
I have a java applet that makes calles via JNI to a C++ DLL.
This aplet is signed for both SUN and MS JVMs.
The DLL is packed inside the JAR file and downloaded onto the user's
harddrive into the user.home directory, then loaded.
Using the SUN JVMs, this works fine. The user has to accept the certifiacte,
then the user.home dir is located, we extyract the DLL from the jar and then
call loadLibrary(). Works a treat.
The exact same set of code does the following:
1. ClassA.class.getResource("/" + dll); returns a path to
c:\windows\java\trustlib for the dll resource path, not the cab file it is
stored in (SUN JVM returns the url to the entry in the jar)
2. I manually copy the dll to user.home (MS Version says this is
"C:\windows\java"). A call to System.loadLibrary("MyDLL") throws an
unsatisfied link error saying the dll is not on the shared path.
I have googled a lot on this and found only similar questions to this, but
no answers.
Has anyone got a clue where what and why?
Steve