...
Download Oracle's JRE (Java Runtime Environment) and follow the manual Java setup instructions.
Move the Java folder into your eclipse directory. For example,
- Windows = C:\apps\eclipse\jre1.6.0_18
- Linux or Unix = /home/tpham/apps/eclipse/jre1.6.0_18
Modify eclipse.ini
Modify the eclipse.ini to point to your jre. Two key thing to keep in mind,
1. You can not mix 32-bit and 64-bit. For example, running Eclipse 32-bit and Java 64-bit will not work.
2. Placement of the -vm option is very important.
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
C:\apps\eclipse\jre1.6.0_18_32-bit\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m |
Tip |
---|
See Specifying the JVM at the Eclipse Wiki for more deteails. |
Launch Eclipse
...
Configure Eclipse Editor on Windows
...