Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java applet problem

Status
Not open for further replies.

aqz123

Programmer
Mar 29, 2007
1
AU
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top