How Do I Change Java Version in Linux?
Contents How Do I Change Java Version on Linux? Procedure Download or Save the Appropriate Jdk Version for Linux. … Extract the Compressed File to the Required...
Contents
How do I change java version on Linux?
Procedure
- Download or save the appropriate JDK version for Linux. …
- Extract the compressed file to the required location.
- Set JAVA_HOME using the syntax export JAVA_HOME= path to JDK . …
- Set PATH using the syntax export PATH=${PATH}: path to the JDK bin . …
- Verify the settings using the following commands:
How do I switch from Java 11 to Java 8 Ubuntu?
Best Answer
- You have to install the openjdk-8-jre : sudo apt-get install openjdk-8-jre.
- Next switch to the jre-8 version: $ sudo update-alternatives –config java There are 2 choices for the alternative java (providing /usr/bin/java).