Total members 11889 |It is currently Fri Mar 29, 2024 7:14 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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 ?




Author:
Proficient
User avatar Posts: 280
Have thanks: 1 time

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/

_________________
Please recommend my post if you found it helpful


Author:
Proficient
User avatar Posts: 228
Have thanks: 0 time
Post new topic Reply to topic  [ 2 posts ] 

  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     -  
 applet in netbeans     -  
 Java applet     -  
 JFrame on applet     -  
 Snake applet     -  
 how to connect applet with excel     -  



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com