File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Applet load dll throw permission exception : access denied Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet load dll throw permission exception : access denied" Watch "Applet load dll throw permission exception : access denied" New topic
Author

Applet load dll throw permission exception : access denied

Tran Manh
Greenhorn

Joined: Apr 06, 2012
Posts: 1
I have an applet and have signed it.
When i load this applet, i track the java console and it work well.
But when i push a button (html) to call a function in applet, in this function, i load a dll from localhost.
I track the result of firebug and got a message: uncaused exception: java.runtimeException... access denied....
i have search for many forum but can not resolved my problem
please give me some advides
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Not sure about this issue, but a better way to use DLLs with applets than to load them from the local machine is to ship them in a jar file that is signed just like the jar file that contains the class files. That way, nothing needs to be installed locally.
Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 498

Tran Manh wrote:I have an applet and have signed it.
When i load this applet, i track the java console and it work well.
But when i push a button (html) to call a function in applet, in this function, i load a dll from localhost.
I track the result of firebug and got a message: uncaused exception: java.runtimeException... access denied....
i have search for many forum but can not resolved my problem
please give me some advides


Javascript calls in or out are always considered untrusted code, regardless of the fact you signed the applet or not. Maybe you should create a button in the applet instead of HTML button. That way definitely works.


PM Me If You Want to get Urgent Help on Java Programming
 
jQuery in Action, 2nd edition
 
subject: Applet load dll throw permission exception : access denied