It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Java Forum

Java applet problem

Java applet problem

Postby SilverSurfer on Fri Mar 30, 2007 1:15 am

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.
SilverSurfer
 
Posts: 0
Joined: Fri Mar 30, 2007 1:05 am

Who is online

Users browsing this forum: No registered users and 0 guests