Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find the java update version?

Tags:

java

I have a jre installed installed in my windows.

When I use the command java -version

I get the output -

java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode)

I can see only the major version 1.7. How to know which version of JRE update it is ?

like image 225
J V Avatar asked Sep 11 '15 14:09

J V


2 Answers

Calling java -version will give you the installed version, including the update number (here: 51):

java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

It seems like you have the base version installed, so there is no update number:

java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode)
like image 93
user1438038 Avatar answered Sep 28 '22 08:09

user1438038


I guess the build gives you the update you have.

You can try this as well-

java -fullversion

Version number translation: 1.6.0_34 is, in English, Java 6 Update 34

like image 21
Techidiot Avatar answered Sep 28 '22 09:09

Techidiot