How Do I Change Java Version in Linux Terminal?
Contents How Do I Change Java Version in Linux? to Switch Between Installed Java Versions, Use the Update-Java-Alternatives Command. … Where...
Contents
How do I change Java version in Linux?
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 ).
Must Read
How do I update Java in Linux terminal?
Install OpenJDK
- Open the terminal (Ctrl+Alt+T) and update the package repository to ensure you download the latest software version: sudo apt update.
- Then, you can confidently install the latest Java Development Kit with the following command: sudo apt install default-jdk.