Oracle JDK 12 Kali Linux - Setting Up
-
4. Setting Up Oracle JDK 12
Now to Install JDK 12 into System
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-12/bin/java 1065
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-12/bin/javac 1065
sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk-12/bin/jar 1065
-
5. Switching to Java 12
Finally, to Switch Java to JDK 12
This is Valid only if you have to Manage more than One Java Releases:sudo update-alternatives --config java