File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Security Exception in Netscape Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Security Exception in Netscape" Watch "Security Exception in Netscape" New topic

Security Exception in Netscape

Carey Brown
Ranch Hand

Joined: Nov 19, 2001
Posts: 885

I wrote a trivial applet that reads a file on my hard disk. I'm getting a security exception when I try to run this from Netscape. Per a friends suggestion I've added the following to the java.policy file:
grant codeBase "file:C:/source/applet/*" {
I found two copies of the java.policy file and added this to both. It still doesn't work. Any suggestions?

Understanding the scope of the problem is the first step on the path to true panic
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi Carey,
Just one:
I agree. Here's the link:
subject: Security Exception in Netscape
jQuery in Action, 3rd edition