Question

I am running java7 update21 and getting issues with my applets. I checked with oracle docs about java7 update21. There I got to know about refraining the use of unsigned applets and introduction of new security pop up,which prompts for either block or unblock the code, in Java7 update21. I don't want to see this prompt while running my applets. The workaround from the user perspective is check the "Enable-hide warning and run with protections". I want to block this with default java control panel settings.I want to block this prompt from code.I tried by adding manifest attribute Trusted-only as true as given in Oracle docs. My application is misbehaving after adding this attribute. Is there anyother approach i should proceed with?

Was it helpful?

Solution

I figured out the solution to my case. I was using self signed jars, also there were some third party self signed jars. And there was some Mixed code involved. So according to release notes of java 7 update 21 i need to add the the Trusted-Library: true attribute to manifest of each jar used by applet.

After adding the attribute to manifest of all the jars (My own jar and third party jars) the Java loads all the classes in a separate class loader. so now the applet has access to all the classes it needs (third party ones). so now the applet loads without a prompt.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top