Here’s a quick guide to show the use of “java -version” command to check the current JDK version that installed on your computer.

1. Open your command prompt in Wndows or terminal in *nix.
2. Type “java -version“.

C:\>java -version
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode, sharing)

In this case, JDK “1.6.0_18” is installed on the computer.

Reference

  1. Java version history
Tags :
Founder of Mkyong.com and HostingCompass.com, love Java and open source stuff. Follow him on Twitter, or befriend him on Facebook or Google Plus. If you like my tutorials, consider making a donation to this charity, thanks.

Related Posts

Popular Posts