A browser with JavaScript enabled is required for this page to operate properly.
Documentation

The Java™ Tutorials
Trail: Deployment
Lesson: Packaging Programs in JAR Files
« PreviousTrailNext »

The Java Tutorials have been written for JDK 8. Examples and practices described in this page don't take advantage of improvements introduced in later releases and might use technology no longer available.
See Dev.java for updated tutorials taking advantage of the latest releases.
See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.
See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases.

Questions and Exercises: JAR

Questions

  1. How do you invoke an applet that is packaged as a JAR file?
  2. What is the purpose of the -e option in a jar command?
  3. What is the significance of the manifest in a JAR file?
  4. How do you modify a JAR's manifest file?

Check your answers.

« PreviousTrailNext »

Previous page: The JarRunner Class
Next page: End of Trail

AltStyle によって変換されたページ (->オリジナル) /