Find policytool.exe on your computer. This may require searching
your hard drive. It should be within the installation of JDK or JRE.
Execute the policytool.exe program.
If it comes up with a warning about being unable to open a file, copy
down the file name! That is the location where you will need
to save your policy file.
Note: The filename is likely to be .java.policy
Now add a policy by clicking on "Add Policy Entry".
The Policy Entry dialog will appear. Set the CodeBase to the URL
that you will be loading Snap from. Local file CodeBases follow the
following convention: "file:/D:/snap/classes/"
Click on "Add Permission" to give Snap permission to access the
JDBC-ODBC bridge.
Set the Permission to "Runtime Permission".
Set the Target Name to "accessClassInPackage.sun.jdbc.odbc".
Click on "OK".
Click on "Add Permission" again to give Snap permission to read
the database.
Set the Permission to "PropertyPermission"
Set the Target Name to "file.encoding"
Set the Actions to "read"
Click on "OK"
Now the Policy Entry should look like the following:
Click on "Done" to set the Policy Entry.
Go to "File->Save As" to save the .java.policy file to its proper
location. The file should be saved to the location that you copied
down earlier. To test if this was done correctly, run policytool.exe
again. No warnings should pop up at the start.
You will now need to restart all browsers. The Java Virtual Machine
will need to shut down and start up in order to read the new .java.policy
file.