[thelist] Java... error when Sun JRE is not installed.

Kristof Neirynck k.neirynck at belgacom.net
Fri Nov 21 06:58:18 CST 2003


Joshua Olson wrote:

> FYI, I'm including the applet using the following code:
> 
> <applet name="MyClassApplet" id="MyClassApplet" width="1000" height="1000"
> code="MyClass.class">
> Your browser is not able to run Java applets. This is probably due to having
> Java disabled in your browser settings.
> </applet>
> 

Look here:
<http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/using_tags.html>

You'll end up with something like this:
<object
     classid ="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
     codebase 
="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0"
     width="250" height="280">
     <param name="code" value="Oefening08b/AppletOefening08b.class">
     <param name="type" value ="application/x-java-applet;version=1.4.2">
     <param name="archive" value="AppOefening08b.jar">
     <comment>
	<embed width="250" height="280"
         code="Oefening08b/AppletOefening08b.class"
         type="application/x-java-applet;version=1.4.2"
         archive="AppOefening08b.jar"
 
pluginspage="http://java.sun.com/products/plugin/index.html#download">
         <noembed>
             Your browser is completely ignoring this applet!
         </noembed>
	</embed>
     </comment>
</object>


Doesn't validate html-wise, but it makes the browser download the right 
jre and that's what we want, right?


-- 
Kristof



More information about the thelist mailing list