facebook

Eclipse Variable for java home based on selected compliance

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #354238 Reply

    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

    #354252 Reply

    support-swapna
    Moderator

    Ken,

    I am afraid this looks more like an Eclipse question.
    I recommend you post to Eclipse forums and development forums like stackoverflow.com for better support.

    Hope it helps.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Eclipse Variable for java home based on selected compliance

You must be logged in to post in the forum log in