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
Java Runtime – How to Check if Java is Installed on a Computer
javaruntime
Best Answer
if you are using windows or linux operating system then type in command prompt / terminal
If java is correctly installed then you will get something like this
Side note: After installation of Java on a windows operating system, the PATH variable is changed to add java.exe so you need to re-open cmd.exe to reload the PATH variable.
Edit:
CD to the path first...