Java Installation On A Debian, Ubuntu, Arch, Kali, CentOS, Fedora And Raspbian

Java Installation On A Debian, Ubuntu, Arch, Kali, CentOS, Fedora And Raspbian

java

Java Application Launcher.

Install java

  • Debian apt-get install java Click to copy
  • Ubuntu apt-get install java Click to copy
  • Arch Linux pacman -S java Click to copy
  • Kali Linux apt-get install java Click to copy
  • CentOS yum install java Click to copy
  • Fedora dnf install java Click to copy
  • Raspbian apt-get install java Click to copy

Java Application Launcher.

How to use java?

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

Execute a java .class file that contains a main method by using just the class name:
java classnameClick to copy
Execute a .jar program:
java -jar filename.jarClick to copy
Display JDK, JRE and HotSpot versions:
java -versionClick to copy
Install the latest version of java in Debian, Ubuntu, Arch, Kali, CentOS, Fedora and Raspbian from terminal. To install the java just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of java from the respository and install it in your computer/server.