My java applet stopped working once JRE was updated to 7u21.
Short summary:
The Exceptions I get are: netscape.javascript.JSException and
java.l
The same happened with me (in java environment) which ruined my whole day, netscape's JSObject is present in both jre's plugin.jar and jfxrt.jar, you'd need to exclude one. if you need a js call, i think you'd need plugin.jar jre 6 do not contain latest jfxrt.jar (JavaFX related solution for applets in web)so it used to work in jre6
also , do not use trusted library unless you want to sign individual jars separately. Hope this helps - Chaithanya