Applet blocked by java security settings in java 7

I am trying to deploy a test demo applet. The applet code is presented in the following


import java.applet.Applet; import java.awt.Graphics; public class TestApplet extends Applet{ public void paint(Graphics gh){ gh.drawString("hello world", 300, 200); } } 

I also used a manifest file which is included in the jar containing the following lines

Permissions: sandbox

Application Name: Applet Demo

Then I signed the jar using jarsigner with a keystore containing a thawte trusted certificate. Jarsigner can also verify a signed bank with an appropriate certificate chain. I also installed this .p12 file (keystore) on the system

After that, I tried to download the applet from the local server through the Chrome browser. Below is my html code

 <html> <Title>Applet Testing</Title> <hr> <applet code="TestApplet.class" archive="SignedTestApplet.jar" width="480" height="320"> <param name="Permissions" value="sandbox"/> <param name="Application-Name" value="Applet Demo"/> </applet> <hr> <html> 

After completing all the above procedures, I get the following popup answer


Security settings blocked the launch of the application with an outdated or outdated version of java


I am using java 7 update 60 and it works if I set the security level as the environment from the Java control panel, but I need to maintain a high level.

Is there a flaw in my procedures or what to do?

Please suggest me.

+8
java applet
source share
3 answers

You are trying to load a java applet with an old method that has been modified. A new method has been introduced that uses JNLP (Java Network Launch Protocol). Try deploying your applet according to the instructions described in this LINK

+2
source share

You have several options:

  • Install a newer version of Java (Java 8 is now available). If you go to about:plugins in Chrome, you can find Java here and which version your browser uses (the "Always allowed" checkbox is also checked here, but it doesn’t work for me).
  • Launch Chrome with the flag --allow-outdated-plugins - see the appropriate one for information on this.
  • Set the security level as the environment from the Java control panel (as you described in your question).
+1
source share

From Java 7, Update 10 on all Java releases has an expiration date . Whenever a critical update ( CPU ) update is issued, outdated versions expire.

3 CPUs were released for Java 7 with 7u60. You must upgrade to 7u75 or 7u76.

+1
source share

All Articles