Ok, I've learned something.
I moved the loadLibrary() call to the init() method of the applet and was able to load the library. The way this applet works, the init() method does nothing more than read some parameters. The actual functioning of the applet begins when the web page calls another method in the applet class using JavaScript.
Up until now, I have had no local access security problems when accessing the applet...
User Profile
Collapse
-
Yes. The applet class A is loaded from signed JAR1 and performs several local accesses including file read/write and printing. However, all of these local accesses are performed by classes instantiated by class A and loaded from the same JAR (JAR1). Classes B, C, and D are loaded from other signed JARs.
I'm trying to determine if its necessary that classes B, C, and D must all be loaded from JAR1 as this is the JAR from which applet...Leave a comment:
-
Thank you for responding. All the JARs in question are signed but I still get the access denied error.
The main applet class A, in JAR1, instantiates class B in JAR2. Class B instantiates class C from JAR2. Class C inherits class D from JAR3. Class D constructor calls loadLibrary(). All JARs are signed.
How should I change this to overcome the security violation?Leave a comment:
-
Calling a DLL from a Java Applet
I have a pretty sophisticated applet running from several JARs. The main applet is in a signed JAR and performs local file accesses. This works fine. However, the applet in this signed JAR is instantiating a class from another JAR which inherits a class from yet another JAR and this superclass does a loadLibrary() call to load a local DLL. This is getting an access denied error.
All of these JARs are loaded as part of the APPLET...
No activity results to display
Show More
Leave a comment: