0

Is it possible to make a JAR file for a Java Applet? And no, I don't have a JApplet, I have an Applet. My class extends Applet instead of JApplet.

3
  • 1
    Why don't you try by deploying one and thereby posting answer to your own question! Give it a try! Commented Aug 9, 2014 at 17:50
  • I did and nothing worked :( That's why I'm asking you guys. Commented Aug 9, 2014 at 18:31
  • "Is it possible to make a JAR file for a Java Applet?" It is not only possible, but now that code basically has to be digitally signed, it is effectively compulsory. Commented Aug 10, 2014 at 13:27

1 Answer 1

3

Yes. See Deploying An Applet In Under 10 Minutes :

  • Compile / build your applet's Java code and make sure all class files and resources such as images etc. are in a separate directory, example build/components.
  • Create a jar file containing your applet's class files and resources.
  • Sign your jar file if the applet needs special security permissions, for example, to be launched in a modern JRE with default settings. By default, unsigned code will be blocked.
  • Create a JNLP file that describes how your applet should be launched.

See also Deployment Toolkit 101 - Java Tutorials Blog

Sign up to request clarification or add additional context in comments.

3 Comments

Oh shoot, it seems to be that they deleted the Deployment Toolkit 101.
They just moved it :)
"Sign your jar file if the applet needs special security permissions, for example,.." ..to be launched in a modern JRE with default settings. By default, unsigned code will be blocked.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.