Java Tool Tutorials - Herong's Tutorial Notes
Dr. Herong Yang, Version 5.00

'jar' - The JAR File Tool

This chapter provides notes and tutorials on JAR file tool, 'jar'. Topics include Java Archive (JAR) file forma, 'jar' command options, creating JAR files, managing JAR files with WinZIP, using manifest file, creating executable JAR files.

JAR - Java Archive File Format

'jar' - JAR File Tool Command and Options

Creating the First JAR File - hello.jar

Managing JAR Files with WinZIP

META-INF/MANIFEST.MF - JAR Manifest File

Adding META-INF/MANIFEST.MF to JAR Files

Using JAR Files in Java Class Paths

Creating Executable JAR Files

Conclusions:

  • JAR files are ZIP files.
  • JAR files can have attributes stored in the META-INF/MANIFEST.MF file.
  • JAR files can be used in Java class paths.
  • JAR files can be "executable".

Dr. Herong Yang, updated in 2008
'jar' - The JAR File Tool