Switch between different Java (JVM) in Ubuntu and Debian GNU Linux
Last Updated on Monday, 1 September o 09:54 Written by admin Monday, 1 September o 09:36
Have you ever needed to install different versions of java on your machine but have no idea how to switch between them? Just follow the example below.
sudo update-alternatives –config java
A menu system will appear and all you have to do is choose the number of the java version you want to use.
java -version