c:\jdk\policytool -file .policy keystore ".keystore"; grant signedBy "yourName" { permission java.io.FilePermission "${user.dir}/-", "read"; }; grant codeBase "http://someserver/myjar.jar" { permission java.util.PropertyPermission "file.encoding", "read"; }