- This topic has 5 replies, 2 voices, and was last updated 17 years, 2 months ago by
Loyal Water.
-
AuthorPosts
-
Walter StovallMemberI’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!
May 2, 2008 at 12:32 pm #284623
Loyal WaterMemberYou can go to Windows > Pref > Java > Installed JRE and add JRE 1.6. You can now make this the default JRE by checking it.
May 5, 2008 at 6:50 am #284660
Walter StovallMemberI 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 x86Doesn’t this mean that MyEclipse is running under the 1.5 JRE and not the 1.6 JRE I’ve selected?
May 5, 2008 at 7:10 am #284663
Loyal WaterMemberYou 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.
May 5, 2008 at 9:19 am #284666
Walter StovallMemberThere 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=256MMay 5, 2008 at 9:34 am #284667
Loyal WaterMember1. Add this line to the eclipse.ini file:-
-vm C:\jdk1.6.0_04\bin\javaw.exeMake 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
-
AuthorPosts