How do I know if Java is installed on Ubuntu?

Ngọc Trâm

New member
How do I know if Java is installed on Ubuntu?
Answer
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.
 

Tìm kiếm

Back
Top