I've written an applet that comes up fine with appletviewer, but when I try to invoke it from the html page that refers to it, I get nothing more than "starting Java" at the bottom of the screen. The screen remains white as the applet is apparently never loaded. I've located both the applet and the html page in the webpages directory of JSWDK-1.0.1, and refer to the name of the applet as "applet_name.class" under APPLET CODE. What is the matter with this applet?
posted 19 years ago
Answered my own question. The problem lay NOT with security, but with the lack of an invocation of a Java plug in. Below are examples, from Sun, of the Old Way and the New Way of doing things in the .html file: Traditional APPLET Tag: <APPLET code="XYZApp.class" codebase="html/" align="baseline" width="200" height="200"> <PARAM NAME="model" VALUE="models/HyaluronicAcid.xyz"> No JDK 1.2 support for APPLET!! </APPLET>
New EMBED tag: <EMBED type="application/x-java-applet;version=1.2.2" width="200" height="200" align="baseline" code="XYZApp.class" codebase="html/" model="models/HyaluronicAcid.xyz" pluginspage="http://java.sun.com/products/plugin/1.2/plugin-install.html"> <NOEMBED> No JDK 1.2 support for APPLET!! </NOEMBED> </EMBED>