Determine JAVA Version for UNIX & Linux

1. To find the JAVA version on your UNIX or Linux operating system, execute below command and you will the see the result something like,

# java -version
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6)

2. But, if the result return something like this, it mean that either it is not installed or you did not setup the path properly.

# java -version
-bash: java: comand not found

You May Also Like

Leave a Reply?