File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet load dll throw permission exception : access denied

 
Tran Manh
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 2500
12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 502
Eclipse IDE Firefox Browser Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic