Sandeep Sehrawat Sandeep Sehrawat - 7 months ago 15
Java Question

How to check whether java is installed on the computer

I am trying to install java windows application on client machine.I want to check whether
requried JRE is installed on the machine or not. I want to check it by java program not by cmd command

Answer

if you are using windows or linux operating system then type in command prompt / terminal

java -version

If java is installed then you will get something like this

java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode, sharing)