...
Modify the eclipse.ini to point to your jreJRE with by adding -vm and a reference to Java.
Two key thing to keep in mind,
- You can not mix 32-bit and 64-bit. For example, running Eclipse 32-bit and Java 64-bit will not work.
- Placement of the -vm option is very important. The -vm option must occur before the -vmargs option
Modify the eclipse.ini with by adding the following two lines,
Code Block |
---|
-vm
C:\apps\eclipse\jre1.6.0_18_32-bit\bin\javaw.exe |
Here is an example of what the eclipse.ini would look like for Windows,
Code Block | ||
---|---|---|
| ||
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
jre1.6.0_18_32-bit\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m |
Here is an example of eclipose eclipse.ini for Unix or Linux,
Code Block | ||
---|---|---|
| ||
-startuplugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar--launcher.library-startup plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar --launcher.library plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.2.R36x_v20101019_1345 -product org.eclipse.epp.package.jee.product --launcher.defaultAction openFile -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile -vm jre1.6.0_2418/java -vmargs -Dosgi.requiredJavaVersion=1.5 -XX:MaxPermSize=256m -Xms40m -Xmx512m -Xmx512m |
Tip |
---|
See Specifying the JVM at the Eclipse Wiki for more deteails. |
...