Check JDK Version on Linux

There are several ways to check the JDK version on a Linux system.

  1. 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.

  1. 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.

  1. 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.

bannerAds