Skip to main content

Java Applications/Libraries Packager.

# To recursively archive all files in the current directory into a .jar file:
jar cf <file.jar> *

# To unzip .jar/.war file to the current directory:
jar -xvf <file.jar>

# To list a .jar/.war file content:
jar tf <path/to/file.jar>

# To list a .jar/.war file content with verbose output:
jar tvf <path/to/file.jar>