I had this problem recently. If you're using a JDK 1.4 or up, signed applets will have problems reading files from hard disks UNLESS you make changes to the local policy file settings. Check in your %JDK_HOME%/jre/lib/security/java.policy file. If you add a line similar to
It should give you rights to read/write to that file. You can also add permissions to do things like read a user's home directory from the system, etc.
The problem I ran into after figuring this out was how to make sure that each user's java.policy file had these changes. I believe there's a programmatic way to set these policy rights that you might look into as well.
Joined: Jan 18, 2005
thanks for u r help tom. till i m getting the same error.plz help me.
is it is required my file should be in same directory.
plz help me. i m going to read the file "name.css".which is in some other directory.
i gave like this. till i m geting the same error. plz help me..