jni dll path

Q

quikquic

I have an applet which call jni dlls. If it is run in Dos console, I
can do
"PATH = %PATH%;MyJinDllPath;" before "java myapplet" to make the dll
available. If it is run inside a web browser, how can I set the dll
path?

Thanks,

qk
 
C

Chris Smith

I have an applet which call jni dlls. If it is run in Dos console, I
can do
"PATH = %PATH%;MyJinDllPath;" before "java myapplet" to make the dll
available. If it is run inside a web browser, how can I set the dll
path?

You can't, actually. If you have appropriate privileges (and you must,
if you're using native libraries at all), you can use System.load
instead of System.loadLibrary, to specify the full path in the applet
itself.

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
Q

quikquic

Thanks. What if my applet denpends on my1.dll and my1.dll depends on
my2.dll? System.load("fullpath\my1") is going to load my1.dll
correctly, but can my1.dll find my2.dll correctly?

Thanks,

qk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top