• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applet loads fine with appletviewer, but not in JSWDK, why?

 
Ben Weaver
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ben Weaver
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>

For more info on plug-ins and on the <EMBED> tag, see:
http://java.sun.com/products/plugin/1.2/docs/tags.html

Ben Weaver

 
Sarada Bhasker
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please let me know where you will put the applet class in
jswdk and what should be the codebase ?

[This message has been edited by Sarada Bhasker (edited November 24, 2000).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic