Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OBJECT tag and applet jars

 
Al Murphy Al Murphy
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Folks,
I'm calling a swing-based applet using the following code. Unfortunately it doesn't appear to work when I replace "a.class" with "a.jar".
Is there any way you can invoke a jared applet using the <OBJECT> tag. I would greatly appreciate your comments...
--------------------------------------------------------------------------
CODE AS FOLLOWS:
<OBJECT
classid = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
codebase = "http://java.sun.com/update/1.4.2/jinstall-1_4-windows-
i586.cab#Version=1,4,0,0"
WIDTH = 150 HEIGHT = 300 >
<PARAM NAME = CODE VALUE = a.class >
<PARAM NAME = "type" VALUE = "application/x-java-applet;version=1.4">
<PARAM NAME = "scriptable" VALUE = "false">
</OBJECT>
 
Billybob Marshall
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't change the a.class to a.jar in the tag. You still have to tell it what CLASS implements the applet, so that part doesn't change. You just also have to tell it where to find the class - something like a "codebase" parameter indicating where the a.jar file is.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic