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.
- 1Why don't you try by deploying one and thereby posting answer to your own question! Give it a try!Am_I_Helpful– Am_I_Helpful2014-08-09 17:50:15 +00:00Commented Aug 9, 2014 at 17:50
- I did and nothing worked :( That's why I'm asking you guys.Samkough– Samkough2014-08-09 18:31:01 +00:00Commented 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.Andrew Thompson– Andrew Thompson2014-08-10 13:27:59 +00:00Commented Aug 10, 2014 at 13:27
Add a comment |
1 Answer
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.
3 Comments
Samkough
Oh shoot, it seems to be that they deleted the Deployment Toolkit 101.
DavidPostill
They just moved it :)
Andrew Thompson
"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.