Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

Applet File Permission

Fri Nov 07, 2008 12:57 pm

This a problem i faced .When i made applet the access file i faced the
following exception:
Code:
java.security.AccessControlException: access denied
(java.io.FilePermission text.txt read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileReader.<init>(Unknown Source)
at CheckTopScore.<init>(CheckTopScore.java:30)
at MainFrame.<init>(MainFrame.java:200)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


any help ?



Re: Applet File Permission

Fri Nov 07, 2008 12:57 pm

you need to sign your applet for it to be granted various permissions.
for more on signing applets check:
http://java.sun.com/developer/technical ... ty/Signed/

Post a reply
  Related Posts  to : Applet File Permission
 File Permission     -  
 Encrypt/Decrypt a file from source file to target file.     -  
 load class to applet- load frame class to applet     -  
 add applet to jsp     -  
 First Applet     -  
 Snake applet     -  
 applet in netbeans     -  
 Java applet     -  
 JFrame on applet     -  
 how to connect applet with excel     -