Best Answer: How Do I Choose Java Version in Linux?
Contents to Switch Between Installed Java Versions, Use the Update-Java-Alternatives Command. … Where /Path/to/Java/Version Is One of Those Listed by the...
Contents
To switch between installed java versions, use the update-java-alternatives command. … where /path/to/java/version is one of those listed by the previous command (e.g. /usr/lib/jvm/java-7-openjdk-amd64 ).
How do I find Java version on Linux?
Method 1: Check the Java Version On Linux
- Open a terminal window.
- Run the following command: java -version.
- The output should display the version of the Java package installed on your system. In the example below, OpenJDK version 11 is installed.
How do I choose Java version in Ubuntu?
Checking Java versions installed on Ubuntu / Debian
~$ sudo update-alternatives –config javac There is 1 choice for the alternative javac (providing /usr/bin/javac).