How To Install Jar On Debian, Ubuntu, Arch, Kali, Fedora And Raspbian?

How To Install Jar On Debian, Ubuntu, Arch, Kali, Fedora And Raspbian?

jar

Java Applications/Libraries Packager.

Install jar

  • Debian apt-get install gcj-4.7-jdk Click to copy
  • Ubuntu apt-get install openjdk-12-jdk-headless Click to copy
  • Arch Linux pacman -S java-environment-common Click to copy
  • Kali Linux apt-get install openjdk-11-jdk-headless Click to copy
  • Fedora dnf install java-9-openjdk-devel-debug-1 Click to copy
  • Raspbian apt-get install openjdk-8-jdk Click to copy

Java Applications/Libraries Packager.

How to use jar?

Below are few example commands for jar that you can use in the terminal.

Unzip .jar/.war file to the current directory:
jar -xvf file.jarClick to copy
List a .jar/.war file content:
jar tf path/to/file.jarClick to copy
List a .jar/.war file content with verbose output:
jar tvf path/to/file.jarClick to copy
To install the latest version of jar in your favorite operating system just copy the jar installation command from above and paste it into terminal. It will download and install the latest version of jar 2026 package in your OS.