• Post Reply Bookmark Topic Watch Topic
  • New Topic

Applet load dll throw permission exception : access denied

 
Tran Manh
Greenhorn
Posts: 1
  • 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
Saloon Keeper
Posts: 3336
61
  • 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: 512
Eclipse IDE Firefox Browser Windows
  • 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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!