Hi,
I'm fairly new to Java and I've been stuck on this problem for ages. I have a program to load 3d buildings using Java3D. So I compile it using the command:
javac -classpath ".;dxfloader.jar" DXFLoaderSample.java
and then
java -classpath ".;dxfloader.jar" DXFLoaderSample
This produces a DXFLoaderSample.class file. So now, I'm trying to load that from an applet on my web page and the code is:
<APPLET code="DXFLoaderSample.class" name="DXFLoader" width=260 height=260 archive="dxfloader.jar" id="DXFLoader">
</APPLET>
When I do this, the Java thing doesn't load and it has a cross on the top left side. I think it is a problem with the "dxfloader.jar" file or how I'm integrating it because I need that to load the Java program. Is archive="dxfloader.jar" that how I do it in the applet? Because I tried it with a simple program that doesn't need the .jar file and it ran fine.
Thanks for your help.
I'm fairly new to Java and I've been stuck on this problem for ages. I have a program to load 3d buildings using Java3D. So I compile it using the command:
javac -classpath ".;dxfloader.jar" DXFLoaderSample.java
and then
java -classpath ".;dxfloader.jar" DXFLoaderSample
This produces a DXFLoaderSample.class file. So now, I'm trying to load that from an applet on my web page and the code is:
<APPLET code="DXFLoaderSample.class" name="DXFLoader" width=260 height=260 archive="dxfloader.jar" id="DXFLoader">
</APPLET>
When I do this, the Java thing doesn't load and it has a cross on the top left side. I think it is a problem with the "dxfloader.jar" file or how I'm integrating it because I need that to load the Java program. Is archive="dxfloader.jar" that how I do it in the applet? Because I tried it with a simple program that doesn't need the .jar file and it ran fine.
Thanks for your help.