How do I check if Java is installed on Ubuntu?

How do I check if Java is installed on Ubuntu?
Answer
How to find Java version on Ubuntu 16.04 LTS (Linux)
  • Open a Linux Terminal (command prompt).
  • Enter the command java -version. If Java is installed on your Ubuntu 16.04 LTS system, you will see a Java version installed in response. The second way of finding Java version is using which command. Open the terminal and give the following which command.
 

Tìm kiếm

Back
Top