What is wrong with my object tag for embedding a Java applet?

Here is my object tag.

<object classid="java:my.full.class.Name.class" height="360" width="320"> <param name="type" value="application/x-java-applet"> <param name="archive" value="applets.jar"> <param name="file" value="/report_files/1-1272041330710YAIwK"> <param name="codebase" value="/applets"> </object> 

When I run this in firefox, it just appears with an error, click for more details. The java console shows absolutely nothing. And at the bottom of the fire, the fox says "Applet my.full.class.Name notloaded". The Name.class file is in the applets.jar file. I can enter the URL / applets / applets.jar and access the jar file. So what's wrong?

EDIT: I can also access the param file, although I don't think this is a problem.

EDIT: I updated the tag because I noticed in my HTML logs that it didn't look in the right place. Still nothing though

+4
source share
2 answers
 <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://java.sun.com/update/1.6.0/jinstall-1_6-windows-i586.cab#Version=1,6,0,0" code="my.full.class.Name" archive="/applets/applets.jar" ... /> 

See the documentation!

(and you should not add .class to fully qualified class names)

+3
source

Firefox error with classid attribute. The following should work with cross browser: -

 <p> <object type="application/x-java-applet" name="previewersGraph" width="360" height="320"> <param name="codebase" value="/applets" /> <param name="code" value="my.full.class.Name" /> <param name="archive" value="applets.jar" /> <param name="scriptable" value="true" /> <param name="mayscript" value="true" /> <param name="file" value="/report_files/1-1272041330710YAIwK" /> </object> </p> 

In my tests, IE8 and FF5 required a type attribute. The mayscript parameter is required only for Java plugins prior to 1.6.0.10. The scriptable parameter is still required according to javadocs 1.6.0.21. However, in the test with 1.6.0.24 for the signed applet, IE8 called it OK with JS without the possibility of installing a script.

+1
source

Source: https://habr.com/ru/post/1308248/


All Articles