Check JDK Version on Linux
There are several ways to check the JDK version on a Linux system.
- Open the terminal and run the following command to check the version information of Java:
java -version
This will display the version information of the JDK installed on the system.
- To find the installation path of the JDK, you can determine it by checking the environment variables. Run the following command:
echo $JAVA_HOME
This will display the installation directory of the JDK.
- Navigate to the installation directory of JDK using a file system browser and check the version information.
With the above method, you can easily check the version of JDK on your Linux system.