facebook

Configuring MyEclipse Java VM version

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #263916 Reply

    Richly
    Participant

    How can I configure MyEclipse to use the Java 1.6.0 VM? I’ve downloaded and installed the latest FullStack_MyEclipseEnterpriseWorkbenchInstaller_5.1.0GA_E3.2.1.exe, and it installs Java version 1.5_08. I’ve got version 1.6.0 that I’d prefer to use. I suspect I could simply copy the 1.6.0 jre directory over the jre directory that FullStack set up, but this seems a rather primitive solution, a little like hitting it with a club. Presumably there is some configuration option that points to the VM that I could change if only I could find it! And while I’m at it, I want to have MyEclipse default to generating code for version 6.

    Thanks,
    Richard

    #263918 Reply

    Richly
    Participant

    How can I configure MyEclipse to use the Java 1.6.0 VM?

    I should have said that I’m using a Windows installation. In any case, I figured out this part of my question myself. Change the properties of the icon used to launch the program so that the target is
    <EclipsePath>\eclipse.exe -vm “<JavaPath>\jre1.6.0\bin\javaw.exe”
    where <EclipsePath> and <JavaPath> depend on where you installed the relevant pieces of software. [Suggestion to developers: ask the user which installed jre the user wants to use while installing the software, and make changing this choice more obvious.]

    This still leaves the second question: how can I configure MyEclipse so that it defaults to a JDK compliance level of 6.0 instead of 1.4? I know that on a per-project basis, I can set the Java Compiler’s compliance level – either at the project’s inception or later. If I do nothing, it seems to set to 1.4. This is a default I’d like to change to 6.0.

    Thanks,
    Richard

    #263972 Reply

    Scott Anderson
    Participant

    Richard,

    The reason we install with a 1.5.0 JRE is because that is the most recent version that Eclipse is certified and tested to work against. Changing the startup parameters as you did to run with JDK 1.6.0 is highly discouraged because Eclipse and MyEclipse are not tested with that JRE and do not need its additional capabilities in order to function properly. Additionally, since you don’t need to start MyEclipse with JDK 1.6.0 in order to use it during your development of your projects I’d recommend changing the startup JRE back to 1.5.0 in order to avoid any problems with the tools.

    That said, to use JDK 1.6.0 in your projects you’ll first need to configure it as an available (or the default) JRE inside MyEclipse at Window > Preferences > Java > Installed JREs. Once aware of the new JRE, it will be available for use in your projects. After doing that, you can set the default compliance level as you like at Window > Preferences > Java > Compiler.

    I think that answers all your questions. If you have any others, just ask.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Configuring MyEclipse Java VM version

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