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.
java applet
Maruful haque
source share