Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-12695

Java 1.7 is used for server launch even if java 1.6 is default in Eclipse on Mac

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.0.0.Beta1
    • 4.0.0.Alpha1
    • server
    • None
    • Hide

      1. Start Eclipse with java 1.7 (which is also set as default in OS X using Java Preferences.app)
      2. Go to Preferences -> Java -> Installed JREs and set Java SE 6 as default
      3. Add a new as7 server (Server View -> New -> Server)
      4. Note that the default JRE for the server is "Default JRE for JavaSE-1.6" - leave it as it is
      5. After adding the server, open the server editor (double-click the server in Server View) and click Open launch configuration
      6. Go to the Classpath tab and check the JRE - you'll see there is Java SE 7 selected - FAIL?

      Note that in Preferences -> Java -> Installed JREs -> Execution Environments there is JavaSE-1.6 and it contains two compatible JREs: Java SE 6 [perfect match] and Java SE 7 (MacOS X Default). Neither of them is selected as default, but one would guess the perfect match would be used. And don't forget that we set Java 6 as the default earlier.

      Show
      1. Start Eclipse with java 1.7 (which is also set as default in OS X using Java Preferences.app) 2. Go to Preferences -> Java -> Installed JREs and set Java SE 6 as default 3. Add a new as7 server (Server View -> New -> Server) 4. Note that the default JRE for the server is "Default JRE for JavaSE-1.6" - leave it as it is 5. After adding the server, open the server editor (double-click the server in Server View) and click Open launch configuration 6. Go to the Classpath tab and check the JRE - you'll see there is Java SE 7 selected - FAIL? Note that in Preferences -> Java -> Installed JREs -> Execution Environments there is JavaSE-1.6 and it contains two compatible JREs: Java SE 6 [perfect match] and Java SE 7 (MacOS X Default). Neither of them is selected as default, but one would guess the perfect match would be used. And don't forget that we set Java 6 as the default earlier.

      When you start Eclipse with java 1.7, but you set the default in Eclipse to java 1.6 and then you add a new server (e.g. as7) it will be launched with java 1.7 instead of 1.6.

            rob.stryker Rob Stryker (Inactive)
            exd-mmalina Martin Malina
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: