I am trying to determine if the JVM is installed and where it is located, so I can run java.exe .
All I managed to find was HKCU\Software\JavaSoft\Java Runtime Environment\<ver> . Can it be assumed that it is set to %PROGRAMFILES%\Java\jre<ver> ?
I am trying to do this in C #, but I assume that the answer is pretty language inactive, so any answer is appreciated.
EDIT: Ok, silly me, I found How to determine if java runtime is installed or not on a computer using C # , which pointed me to HKLM\Software\JavaSoft\Java Runtime Environment\CurrentVersion , which works with HKLM\Software\JavaSoft\Java Runtime Environment\<ver>\JavaHome . I managed to find them instead of HKLM\Software\Wow6432Node\JavaSoft\Java Runtime Environment . Is there a way to determine which ones I should check without trying to smell the type of processor?
java windows jvm
Matthew scharley
source share