With the new Java update 7.51 all applets must follow new guidelines:
- All code for Applets and Web Start applications must be signed
- Permissions attribute in the manifest must be set, no default
What this means is any applet that currently exists that is not signed, has an expired certificate, or doesn’t have the permissions attribute will no longer work. As a side job I make sure photodepository.com works, and it was affected by this so here’s how to fix it.
Quick Answer:
- Buy a code signing certificate
- Resign your applet
- Done
Here’s how:
- Create a txt file for the manifest additions. Here are the contents:
Permissions: all-permissions Application-Name: MyAppletName
- Extract you jar:
> mkdir jarname
> mv jarname.jar jarname
> cd jarname
> jar xf jarname.jar - Remove the META from the extract
> rm -r META-INF/ - Rejar the applet and include the required manifest additions
> jar cfm jarname.jar ../manifestAdditions * - Sign the jar. Here’s my posts to do the signing:
> Create a Java keystore from a p12 file
> Finding an imported certificate’s alias in a java keystore
> How to sign a jar