My java applet stopped working once JRE was updated to 7u21.
Short summary:
The Exceptions I get are: netscape.javascript.JSException and
java.l
It's not possible to set the attributes of an applet to work both on versions after 7.0.21 and below it.
Trusted-Library: true
attribute works for the ones below 7.0.21 which causes a security dialog to be displayed (and most probably your code to be blocked) after 7.0.21. If you only put
Caller-Allowable-Codebase: *.yourdomain.com
to your manifest file, it starts to work fine with the versions after 7.0.21 but this time it stops with the versions below 7.0.21. This is a huge mess.
However they've fixed this ill behaviour with the latest version (7.0.51). So I suggest to use both attributes (Trusted-Library and Caller-Allowable-Codebase) which will work for Java 6 and 7.0.51. I don't think there is a solution for the ones between 7.0.21 and 7.0.45. (I do not support them, we ask our clients to upgrade to 7.0.51).
https://blogs.oracle.com/java-platform-group/entry/7u45_caller_allowable_codebase_and