N
Neil Cherry
I'm writing an applet (Java 1.4.2) that needs to read one file and
write to another file on the user's PC. I've created a test applet and
I've run it through appletviewer and it works fine. When I run it
through Firebird (I'm using the javaplugin) I get an exception when I
attempt to write to the file (same applet that worked with
appletviewer).
I have a .java.policy in my $HOME directory and in
~/.java/deployment/security/java.policy and
~/.java/deployment/security/.java.policy (same file copied to 3
different places). I have a file called foo and bar in my home
directory and everyone has read and write permissions. Lastly this is
my policy file:
grant codeBase "file:." {
permission java.io.FilePermission "foo", "read, write";
permission java.io.FilePermission "bar", "write";
};
Any pointers? Also where would the file go if it were on a MAC or
Windows 2K or XP machine?
write to another file on the user's PC. I've created a test applet and
I've run it through appletviewer and it works fine. When I run it
through Firebird (I'm using the javaplugin) I get an exception when I
attempt to write to the file (same applet that worked with
appletviewer).
I have a .java.policy in my $HOME directory and in
~/.java/deployment/security/java.policy and
~/.java/deployment/security/.java.policy (same file copied to 3
different places). I have a file called foo and bar in my home
directory and everyone has read and write permissions. Lastly this is
my policy file:
grant codeBase "file:." {
permission java.io.FilePermission "foo", "read, write";
permission java.io.FilePermission "bar", "write";
};
Any pointers? Also where would the file go if it were on a MAC or
Windows 2K or XP machine?