This was hard for me to google. I am trying to find out if there is an eclipse variable that represents the selected java based on the compliance level and execution environment.
Some of us do some testing of java against existing code bases. Trying to make it easy to switch it around and give the right setting to maven or ant launch configurations.
For example:
1) I have two jdk’s installed. Java 1.6 and Java 1.7
2) The execution environment for JSE 1.6 is pointing to that jdk I installed(jdk1.6)
3) The execution environment for JSE 1.7 is pointing to the other jdk I installed(jdk1.7).
4) The compliance level is CURRENTLY set at 1.7
5) In my launcher I want to pass the correct java home to ant OR maven based on whatever my compliance level is set(in this example 1.7)
6) If the compliance level is 1.7, it should use the default execution environment for 1.7 and give me the java home for the corresponding jdk.
NOTE: I do not want the selected JRE from the launcher. I don’t want to have to change all our launcher files when we switch the compliance level between 1.6 and 1.7.
Ken