1 Reply Latest reply on May 12, 2010 1:18 PM by maxandersen

    How to auto set up different jre versions - eclipse jre 1.5 and jboss server 1.6

      I'm okay with the eclipse environment running in jre 1.5 and the jboss server running in jre 1.6.

       

      My problem is that I think the install should automatically set up the required environment in eclipse and not leave it up to the user to do so.

       

      The installer asks you to point to jre 1.5 and sets up the eclipse.ini with -vm for jre 1.5.

       

      But then the developer has to figure out how to use the preferences and set up a jre 1.6 and the jboss server to use 1.6.

       

      This should be done automatically.

       

      If I wanted to create a plug-in to do this automatically how would I do it? Thanks in advance.

        • 1. Re: How to auto set up different jre versions - eclipse jre 1.5 and jboss server 1.6
          maxandersen

          You can run JBDS with Java 6, the installer says it requires Java 5 where it should say "requires at least Java 5" (will be fixed in next update).

           

          AS 6 servers defaults to use Execution Environment JDK 6 thus it will run with Java 6 IFF you have an Java 6 runtime installed.

           

          If you don't have a Java 6 it will run with the "closest" JDK available.

           

          Thus two options:

          Point to Java 6 in the installer and everything work immediatly

          Point to Java 5 in the installer and when you setup an additional Java 6 when running Eclipse/JBDS JBoss 6 will use it (assuming you used the default AS setup)