How to determine that JVM is installed or not in Windows by other
languages such as VB or VC++.
Arne Vajhøj - 19 Aug 2006 03:03 GMT
> How to determine that JVM is installed or not in Windows by other
> languages such as VB or VC++.
Search for java.exe on disk ?
Look in registry for:
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\x.x\JavaHome
?
Arne
Mark Space - 20 Aug 2006 05:45 GMT
> How to determine that JVM is installed or not in Windows by other
> languages such as VB or VC++.
Execute a shell command like "java -version" ? I believe most shells
return a different exit code for successful completion vs. not finding a
command.