How do I know if Java is installed on Linux?

How do I know if Java is installed on Linux?
Answer
Method 1: Check the Java Version On Linux
  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