H
Heath Raftery
Hi there,
I thought this would be a fundamental token of knowledge in Java
but after weeks of searching and experimentation I am no closer to
a happy solution.
Quite simply, I wish to embed a Java applet residing in a jar archive,
into a web page for display on the Internet via the largest audience.
The deprecated method appears to be this:
<APPLET
archive="JarArchive.jar"
code="MyMainClass"
codebase="directory/of/jar/file"
width=500 height=311>
<param name="nameOfParam" value="valueOfParam">
Alternate text.
</APPLET>
I wanted to be buzzword compliant, and also became interested in
doing some version checking (because of a crash in IE with a
particular version of JVM) so looked up the preferred method.
This is where I ran into trouble of course - I could not find an
authorative source of documentation. Essentially, the common
knowlege appears to suggest this format:
<object
classid="clsid:CAFEEFAC-0015-0000-0000-ABCDEFFEDCBA"
<param name="code" value="Applet1.class">
<comment>
<embed code="Applet1.class"
type="application/x-java-applet;jpi-version=1.5.0">
<noembed>
No Java Support.
</noembed>
</embed>
</comment>
</object>
But that opens up a huge can of worms. How do I set a classid?
How do I specify a different version? What happens if a newer/
older version is installed? What if I want to use a jar file?
Do I use a java: or a clsid:? How long is this syntax likely to
be valid (since it's obviously a crude workaround)?
Ultimately, I've been unable to arrive at a satisfactory solution
using the second format, so I've abandoned version checking and
reverted to the original applet syntax. What are other people doing?
Regards,
Heath
I thought this would be a fundamental token of knowledge in Java
but after weeks of searching and experimentation I am no closer to
a happy solution.
Quite simply, I wish to embed a Java applet residing in a jar archive,
into a web page for display on the Internet via the largest audience.
The deprecated method appears to be this:
<APPLET
archive="JarArchive.jar"
code="MyMainClass"
codebase="directory/of/jar/file"
width=500 height=311>
<param name="nameOfParam" value="valueOfParam">
Alternate text.
</APPLET>
I wanted to be buzzword compliant, and also became interested in
doing some version checking (because of a crash in IE with a
particular version of JVM) so looked up the preferred method.
This is where I ran into trouble of course - I could not find an
authorative source of documentation. Essentially, the common
knowlege appears to suggest this format:
<object
classid="clsid:CAFEEFAC-0015-0000-0000-ABCDEFFEDCBA"
<param name="code" value="Applet1.class">
<comment>
<embed code="Applet1.class"
type="application/x-java-applet;jpi-version=1.5.0">
<noembed>
No Java Support.
</noembed>
</embed>
</comment>
</object>
But that opens up a huge can of worms. How do I set a classid?
How do I specify a different version? What happens if a newer/
older version is installed? What if I want to use a jar file?
Do I use a java: or a clsid:? How long is this syntax likely to
be valid (since it's obviously a crude workaround)?
Ultimately, I've been unable to arrive at a satisfactory solution
using the second format, so I've abandoned version checking and
reverted to the original applet syntax. What are other people doing?
Regards,
Heath