How do I know if Java is running on Linux?
Answer
Method 1: Check the Java Version On Linux
Answer
Method 1: Check the Java Version On Linux
- Open a terminal window.
- Run the following command: java -version.
- The output should display the version of the Java package installed on your system. In the example below, OpenJDK version 11 is installed.