Reputation: 1493
When I download and install Java 8 (JRE) from: http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html I can see the folowing registry key: [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment] "CurrentVersion"="1.8"
However if I download and install Java 8 (JRE) from: https://www.java.com/en/download/ I got the following registry key: [HKEY_CURRENT_USER\Software\JavaSoft\DeploymentProperties]
Thanks
Upvotes: 0
Views: 67
Reputation: 101
You should consider 32bit installations on a 64 bit machine as well.
In Microsoft's techNet site I found a vbs script to be used to determine the java version. Hope it helps. TechNet article on determining the version of java on windows
Upvotes: 0
Reputation: 823
Maybe I would try different approach, try look for java(w).exe on system variable PATH. It should point to latest installation of JRE - assuming latest directory entry in PATH.
Also if your application require specific JVM then its also possible to include JRE with your application. Just pack it inside and make sure your JRE is started. Many companies doing it for very good reason.
Upvotes: 0