jar

Java Applications/Libraries Packager.

Install

All systems
curl cmd.cat/jar.sh
Debian Debian
apt-get install gcj-4.7-jdk
Ubuntu
apt-get install openjdk-12-jdk-headless
Arch Arch Linux
pacman -S java-environment-common
image/svg+xml Kali Linux
apt-get install openjdk-11-jdk-headless
Fedora
dnf install java-9-openjdk-devel-debug-1
Raspbian
apt-get install openjdk-8-jdk

Java Applications/Libraries Packager.

  • Unzip .jar/.war file to the current directory:
    jar -xvf file.jar
  • List a .jar/.war file content:
    jar tf path/to/file.jar
  • List a .jar/.war file content with verbose output:
    jar tvf path/to/file.jar

© tl;dr; authors and contributors