I have multiple JREs installed (6,7,8 both 32 and 64 bit). The way I have set things up is that I have the set up a number of JAVA_x_HOME
paths and then reference JAVA_HOME=%JAVA_x_HOME%
depending on wich version I want to use. However im not sure every application uses JAVA_HOME
when deciding wich JRE to execute on.
Therfore my questions are:
Is there is a way to check wich JRE is used for running some started Java program under Windows 7?
What are the way an application can detect wich JRE to execute on?