Sunday, 22 July 2012

Finding java version

Problem: How to find java version.
Solution: If you have java installed on your machine and it is in system path. -version option gives you the information about Java running on your machine.

[root@myworkstation ~]# java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.7) (rhel-
OpenJDK Client VM (build 19.0-b09, mixed mode)

No comments:

Post a Comment