To my surprise the platform independent JVM fails to load my DLL in
most of the browsers except Safari. In safari the behavior is as
expected. Indeed one of the dll is getting loaded but a second Java
method invokes a call which resides in an indirect DLL. It is there
where the jar fails.
This problem is bugging me since I've started using JApplet. I'd
appreciate if anyone can guide me on the internals of using JApplet
on
different browsers.
Thanks & Regards,
Anoop SL
What OS? Are you sure you have the correct native libraries for the OS in
question?
--
And loving it,
-Qu0ll (Rare, not extinct)
_________________________________________________
Qu0llS...@gmail.com
[Replace the "SixFour" with numbers to email me]
>I've developed an applet which is signed and also loads 3rd party
>dll's runtime. I'm using JNI to link my DLL's with
>JScript.
Applets and JNI do not mix well. The problem is getting the JVM to
find your DLL. Most likely that is the problem. Consider
implementing it as a Java Web Start app. It just requires writing a
*.jnlp file, and leaving everything else as is. Then the JWS will
handle the problem of installing the DLL and making it accessible.
see http://mindprod.com/jgloss/javawebstart.html
If you wish to persist in your Sisyphusian task, see
http://mindprod.com/applet/wassup.html
to find out the path where the DLLs have to live, then go about
getting your DLL installed there. It is a bitch. Sometimes installing
is not sufficient. You must install BEFORE the browser starts up, at
least that's the way Netscape used to work.
I had similar problems with the SetClock Applet and JNI. I eventually
gave up and turned it into a Java Web Start app.
See http://mindprod.com/webstart/setclock.html
--
Roedy Green Canadian Mind Products
http://mindprod.com
If you think it�s expensive to hire a professional to do the job, wait until you hire an amateur.
~ Red Adair (born: 1915-06-18 died: 2004-08-07 at age: 89)
>Applets and JNI do not mix well. The problem is getting the JVM to
>find your DLL.
The other problem is selecting the correct dll/so etc. for the
particular platform. Java Web Start does that for you automagically.