Java Man
Java Man

Reputation: 1860

applet don't load on firefox

Hello I am trying to load applet on web browser. I have create html and include applet tag

<applet code="com.asprise.imaging.scan.ui.demo.PanelMain.class"   
 codebase="."archive="asprise-imaging-ui.jar,asprise-imaging-
 scan-core.jar" width="400" height="300">

I have jar file also in same folder where i created my html,it gives me error.

This plug-in is not supported

Kindly help me to solve this issue.

Thank you.

enter image description here

Upvotes: 1

Views: 551

Answers (1)

George Rosario
George Rosario

Reputation: 781

In Eclipse select the main applet file right click and export it to runnable jar. Let all the dependent jar's bundled. Then in command prompt browse to the folder your jar is placed and type the following commands.

1.keytool -genkey -keyalg rsa -alias m4key  //m4key unique key
2.keytool -export -alias m4key -file bmcert.crt   //bmcert.crt certificate name
3.jar tvf Jarname.jar verify jar // jarname.jar is the jar file created
4.jarsigner Jarname.jar m4key
5.jarsigner -verify -verbose -certs JarnameJarname.jar 

Then simply use the html script and in code property specify the main file of Applet.

<html>
<applet width="1100" height="600" archive="EnrollmentApplet.jar" code="com/vaazu/biometric/Applet/EnrollmentApplet.class"></applet>             
</html>

If you are using java8 ,the security issue by Java 8, Which is not allowing now to display or load the self signed Applets on browser. Please open configure java in settings and in security TAB put the URL of the html page which is using applet in Exception Site List

enter image description here

Upvotes: 1

Related Questions