As far as I can see from the documentation, <applet> deprecated, and the <object> is the preferred method for launching an applet. But I can't find decent documentation or even a tutorial on how to use an object tag to launch an applet.
I saw the following question, which shows how in javascript, but I would prefer to use the tag to launch the applet from a web page
I need to know how to specify the java engine, how to specify the jar file, where it is stored, and how to specify the class that is running.
Here is what I have at the moment (but not working)
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="800" height="600" data="pi.jar"> <param name="code" value="PiLauncher.class"/> </object>
the requirement was in Oracle 1.5 docs that this classid indicates "the current java engine", but this is completely opaque to me. They also had examples requesting a specific version.
Even if it is like me:
- specify jar file
- specify the class (this is correctly indicated above)
- indicate the directory where the code is located (is the code still valid?)
source share