This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet load dll throw permission exception : access denied
 
Similar Threads
Singed applet issue.
Aamer
Accessing native code from signed applet
AccessControlException
JSException: Access is denied.