Coding by Akashdip Mahapatra
🔠I’m currently working on my web-site
java downlod in linux from terminal
Install Java JDK on Kali
$ sudo apt update
$ sudo apt install default-jdk
$ sudo apt-cache search openjdk // If you want to install a specific version of the JDK
$ java --version // Once the process is finished, you can verify the Java installation with the following command.
Write Java Hello World Program
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
Compile Java Program
$ javac HelloWorld.java
Run Java Problem
$ java HellowWorld
To switch between Java versions, execute the following two commands while selecting the Java version you require.
$ sudo update-alternatives --config java
$ sudo update-alternatives --config javac
Websites -
Fedora ;
Redhat ;
.deb file