943,510 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Marked Solved
  • Views: 7059
  • Java RSS
Jun 14th, 2007
0

Applet File Permission !!

Expand Post »
This a problem i faced .When i made applet the access file i faced the following exception:
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
Similar Threads
Reputation Points: 10
Solved Threads: 4
Newbie Poster
msi_333 is offline Offline
22 posts
since Jun 2007
Jun 14th, 2007
0

Re: Applet File Permission !!

There is old comment on one website here
This can be of some help http://mail-archive.objectweb.org/os.../msg00041.html
also here is something http://www.captain.at/programming/java/
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 871
Code tags enforcer
peter_budo is offline Offline
6,653 posts
since Dec 2004
Jun 14th, 2007
0

Re: Applet File Permission !!

thanks a lot
Reputation Points: 10
Solved Threads: 4
Newbie Poster
msi_333 is offline Offline
22 posts
since Jun 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Checkerboard GUI
Next Thread in Java Forum Timeline: illegal start of expression





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC