facebook

How can I make Eclipse JRE load classes compiled w/later JRE

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

    I’m using the Window Builder from Instantiations and that plug-in’s Design view wants to load my classes with their default constructor. But the eclipse JDK inside MyEclipse is JRE 1.5 and my classes are compiled with JRE 1.6. I *think* that’s why the Window Builder can’t load my classes – I’m not sure. Is there some way to make MyEclipse use my 1.6 JRE? Other ideas?

    Thanks!

    #284623 Reply

    Loyal Water
    Member

    You can go to Windows > Pref > Java > Installed JRE and add JRE 1.6. You can now make this the default JRE by checking it.

    #284660 Reply

    I already have 1.6 as an installed JRE and checked. My workspace compiles with 1.6. But the problem is that MyEclipse, which is itself a Java application, runs under the 1.5 JRE. This means (I think) that the Window Builder plug-in won’t successfully load my classes which were compiled with a 1.6 JDK.

    Under Window->Prefs->Java->JRE->Execution Environments I have my 1.6 JRE checked for the J2SE-1.5 environment, which also shows My Eclipse 5.1.1 as a choice, which is not checked. Would that be the correct way to make MyEclipse run under that JRE?

    When I start MyEclipse and build my workspace I get the following log entry:
    !ENTRY com.instantiations.tools 1 0 2008-05-05 07:25:14.359
    !MESSAGE com.instantiations.tools stop
    !SESSION 2008-05-05 07:28:49.156 ———————————————–
    eclipse.buildId=M20070921-1145
    java.version=1.5.0_11
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86

    Doesn’t this mean that MyEclipse is running under the 1.5 JRE and not the 1.6 JRE I’ve selected?

    #284663 Reply

    Loyal Water
    Member

    You need to make this change in your eclipse.ini file. Point the -vm argument to 1.6. Let me know if you cant get this to work.

    #284666 Reply

    There is no vm argument. Where does it belong? What should it say?

    -showsplash
    com.genuitec.myeclipse.product
    –launcher.XXMaxPermSize
    256m
    -vmargs
    -Xms128m
    -Xmx512m
    -Duser.language=en
    -XX:PermSize=128M
    -XX:MaxPermSize=256M

    #284667 Reply

    Loyal Water
    Member

    1. Add this line to the eclipse.ini file:-
    -vm C:\jdk1.6.0_04\bin\javaw.exe

    Make sure you are pointing at the JDK’s executables, like C:\jdk1.6.0_04\bin\javaw.exe

    2. If you used our installer, it already specifies a -VM argument. Edit the shortcut that is used to start MyEclipse, edit it to point at a JDK on your machine

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: How can I make Eclipse JRE load classes compiled w/later JRE

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