Forum Discussion
AlexKaras
Champion Level 2
12 years agoHi,
Good question that I might like to know the answer to as well... (like the similair question about what .Net runtime(s) is/are used for the given .Net application.)
Jose, thank you for the provided command-line. The problem, according to my understanding, is that it will return the version of the first found Java executable.
For example, when I executed java -version just from the command line, the returned version was (build 1.7.0_21-b11).
However, when I executed the same command from the jdk1.6.0_45\bin folder, the result was (build 1.6.0_45-b06).
And when I executed this command from the LoadUI-2.6.8\jre\bin folder, the result was (build 1.7.0_15-b03).
It is my guess that when I start LoadUI it is executed using either (build 1.7.0_15-b03) Java version (because it is in its subfolder and LoadUI might rely on this) or (build 1.7.0_21-b11) Java version (because this version can be found via some environment variable). Some other application might be directly pointed to use the (build 1.6.0_45-b06) Java version.
So, I think that the real question was like "how to determine what Java version is used to run this given Java application instance".
Wondering if anyone have searched for the answer...
Good question that I might like to know the answer to as well... (like the similair question about what .Net runtime(s) is/are used for the given .Net application.)
Jose, thank you for the provided command-line. The problem, according to my understanding, is that it will return the version of the first found Java executable.
For example, when I executed java -version just from the command line, the returned version was (build 1.7.0_21-b11).
However, when I executed the same command from the jdk1.6.0_45\bin folder, the result was (build 1.6.0_45-b06).
And when I executed this command from the LoadUI-2.6.8\jre\bin folder, the result was (build 1.7.0_15-b03).
It is my guess that when I start LoadUI it is executed using either (build 1.7.0_15-b03) Java version (because it is in its subfolder and LoadUI might rely on this) or (build 1.7.0_21-b11) Java version (because this version can be found via some environment variable). Some other application might be directly pointed to use the (build 1.6.0_45-b06) Java version.
So, I think that the real question was like "how to determine what Java version is used to run this given Java application instance".
Wondering if anyone have searched for the answer...