简体   繁体   中英

Is it possible to make a JAR file for a Java Applet?

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM