Sign in to follow this  

[java] Applet and Jar file

This topic is 4108 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Basically I have created an applet. I would like to create a jar file of it. The main function of the applet is located in org\jdesktop\j3d\examples\applet3d\. The class containing the main is named Applet3D.class. When the above folders are not compressed in Jar, I don't have any problems to run the applet. I just have to put the following line in the HTML file : org/jdesktop/j3d/examples/applet3d/Applet3D.class I have put the folders of my applet in a Jar folder "applet3d.jar". Now I do not know how to run the applet... cheers

Share this post


Link to post
Share on other sites
You need to add the Archive parameter to the APPLET tag if I'm not mistaken.

So something like:

<APPLET archive=applet3d.jar code=applet3d.class width=300 height=300>

Share this post


Link to post
Share on other sites

This topic is 4108 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this