my dog learned polymorphism
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: 766

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?

When I was your age I was toggling in the bootstrap code on the front panel
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
It's not a secret anymore!