Due to the security enhancement of Java framework (especially in version 1.7 update 45), user might encounter numbers of problem when running Java Applet. There are 2 things that we need to take notes:
- The new Java framework will not allow Applet to be run without the permission attribute in the manifest file. To add the attribute:
- Create a manifest file with the following sample code:
Codebase: *
Permissions: all-permissions
Application-Library-Allowable-Codebase: *
Caller-Allowable-Codebase: * - Update the manifest file into the jar file:
- jar uvfm <applet jar file> <manifest file> <class files>
- Create a manifest file with the following sample code:
- The new Java framework will not allow Applet to be run without a Publisher. This is tricky because for development or small organization, they might not have CA certificate (even signed applet will show UNKNOWN publisher if it does not have a CA certificate). To deal with this, we need to set the Java Security Level at client side to Medium (at the Configure Java menu).