How Do I Change the Default Jdk in Linux?
Contents What Is My Default Jdk Version Linux? Method 1: Check the Java Version on Linux Open a Terminal Window. Run the Following Command: Java -Version. the...
Contents
What is my default JDK version 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.
Must Read
How do I change my default java to Ubuntu?
Suppose you install Java 11 and you had another version of Java installed earlier, you can select default Java version to use using the update-alternatives –config java command.