Ubuntu Linux Find JDK Version

To find the version of the Java Development Kit (JDK) installed on Ubuntu Linux, you can use the following command in a terminal:

java -version

This will output information about the Java Runtime Environment (JRE) installed on your system, including the version number. If you have the JDK installed, the version number will be included in the output.

For example, the output might look something like this:

openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment (build 11.0.12+7-Ubuntu-0ubuntu1.20.04)
OpenJDK 64-Bit Server VM (build 11.0.12+7-Ubuntu-0ubuntu1.20.04, mixed mode, sharing)

In this example, the version of the JDK is “11.0.12”.

Leave a Comment