aspose file tools*
The moose likes Applets and the fly likes access denied java.lang.runtimepermission exitvm.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "access denied java.lang.runtimepermission exitvm.0" Watch "access denied java.lang.runtimepermission exitvm.0" New topic
Author

access denied java.lang.runtimepermission exitvm.0

Jam Malik
Greenhorn

Joined: Apr 13, 2014
Posts: 1
I am new to applet and I have a problem access denied java.lang.runtimepermission exitvm.0 it shows me this error on Safari, Firefox doesn't show me anything at all, I have no idea why is so, it runs perfectly on my Eclipse but it doesn't work on web browser Any help? Thanks.
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 2364
    
  50
Welcome to the Ranch.

When applets run in an IDE they have a relaxed security policy but when run in a browser their rights are extremely restricted unless they are signed. I haven't looked at your code to find the line causing the problem but you could try self signing the applet to see if that helps although these days you need it signed by a trusted authority to make any real difference unless you also add an exception to the Java control panel.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18887
    
    8

Based on code like this:



I would guess that the problem is with connecting to addresses other than the one from where the applet was downloaded; however looking at the stack trace which comes with the exception should tell you exactly what line of code is the problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: access denied java.lang.runtimepermission exitvm.0