Which Version of Java Do I Have Ubuntu?

Which Version of Java Do I Have Ubuntu?
Contents

The simplest way is: update-java-alternatives -l shows you all the Java versions you have installed. java -version shows you the Java version you are using.

How do I find Java version Ubuntu?

To check the Java version on Linux Ubuntu/Debian/CentOS:

  1. Open a terminal window.
  2. Run the following command: java -version.
  3. The output should display the version of the Java package installed on your system. In the example below, OpenJDK version 11 is installed.

Do I have Java installed Ubuntu?

By default, Ubuntu does not come with Java (or the Java Runtime Environment, JRE) installed. … If you get a result similar to the one shown in the following image, you do not have Java installed. The list shows you which packages in your system have Java available and the command for installing java is displayed.

Elena Rostova
Author

Elena Rostova

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.