File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Aamer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Aamer" Watch "Aamer" New topic
Author

Aamer

Muhammad Aamer Manzoor
Greenhorn

Joined: Sep 16, 2003
Posts: 1
Hi I get "AccessControlException access denied(java.io.FilePermission filename read)" when I run my applet in Browser and the browser wants to read a text file.I dont see this exception when run this applet in appletviewer.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

This deserves to be moved to the Applets forum, but the short answer is:
Applets run inside a 'sandbox' that severly restricts their ability to do things. Operations that do anything to the local computer or try to do anything to any other computer from yours is almost completely disabled. You can use signed applets to authenticate your applets and give users the opportunity to volutarily let an applet have more access, but this (in my experience) is rare.
Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Aamer
 
Similar Threads
Granting an applet read permission
want to see my applet in browser -- reading a file
Reading data from Serial Port device using javax.comm API
Applet not initiated when I run it on Tomcat
applet not visible