I can see a few problems here.
- First, if I understand Fergus' statement correctly, this is modified from someone else's plug-in code. Instead, the basic HTML should have been written and the Java Plug-in HTML Converter app should have been used to generate this HTML. I've never found a quick link to the converter, as there's one for each release of Java. I just go to http://java.sun.com/ and search for 'converter'.
- Second, I can't tell if SoccerMaster is bundled into a jar or not. I believe it has to be. I have that impression from this statement, but I could be wrong:
Changing the APPLET tag in your HTML page to accomodate a JAR file is simple. The JAR file on the server is identified by the ARCHIVE parameter, where the directory location of the jar file should be relative to the location of the html page:<applet code=Animator.class archive="jars/animator.jar" width=460 height=160> <param name=foo value="bar"> </applet>Note that the familiar CODE=myApplet.class parameter must still be present. The CODE parameter, as always, identifies the name of the applet where execution begins. However, the class file for the applet and all of its helper classes are loaded from the JAR file.
-
Third, I'm skeptical about the hardcoded path for the archive parameter. If this is supposed to work via a webpage, is this path going to be available? Probably not. Instead, I would have dropped all required resources into a single directory.
I'm sorry you've decided to give up on this, Fergus.
----- Original Message -----
From: "Fergus Murray" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 14, 2001 9:55 AM
Subject: Re: [JAVA3D] Loaders in applets
> I subscribe again later at a different address, but in case it helps anyone
> else here is my HTML file. I'm afraid it's weird and cluttered; I've
> always been a little bit vague about how all the different ways of
> including a Java2 applet into a page are supposed to fit together, so I've
> just re-used someone else's HTML with whatever modifications seemed
> necessary. It seems to work okay, apart from not running with the loader...
>
> <HTML>
> <HEAD>
> <TITLE>Tao of Soccer J3D viewer prototype</TITLE>
> </HEAD>
> <BODY BGCOLOR="#000000">
> <!--"CONVERTED_APPLET"--><!-- CONVERTER VERSION 1.3 -->
> <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
> codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"
> align="baseline" border="0" width="768" height="600" name="parm8"
> archive="D:\jdk1.3.1\jre\lib\ext\portfolio.jar">
> <param
> name="CODE" value="soccer.client.SoccerMaster">
> <param
> name="CODEBASE" value=".">
> <param name="in3D" value="true">
> <param name="NAME" value="parm8"><param
> name="type" value="application/x-java-applet;version=1.3"><param
> name="scriptable" value="false"><param name="par1"
> value="cp"><COMMENT></object>
> <EMBED
> type="application/x-java-applet;version=1.3"
> code="soccer.client.FootballJ3D"
> archive="D:\jdk1.3.1\jre\lib\ext\portfolio.jar"
> width="768"
> height="600"
> align="middle"
> pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html">
> <NOEMBED>
> </COMMENT>
> No JDK 1.2 support for APPLET!!
> </NOEMBED>
> </EMBED>
> <!--
> <APPLET CODE = "soccer.client.SoccerMaster" WIDTH = 100% HEIGHT = 96%
> archive="portfolio.jar">
> </APPLET>
> --><!--"END_CONVERTED_APPLET"-->
>
> </BODY>
> </HTML>
>
>
> Bye everyone...
>
> - Fergus C. Murray
> http://fergusmurray.members.beeb.net/
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA3D-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
