Java Installation On A Debian, Ubuntu, Arch, Kali, CentOS, Fedora And Raspbian
Install java
-
Debian
apt-get install javaClick to copy -
Ubuntu
apt-get install javaClick to copy -
Arch Linux
pacman -S javaClick to copy -
Kali Linux
apt-get install javaClick to copy -
CentOS
yum install javaClick to copy -
Fedora
dnf install javaClick to copy -
Raspbian
apt-get install javaClick 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 copyExecute a .jar program:java -jar filename.jarClick to copyDisplay 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.




