| Is eclipse.ini the only place where jdk for Eclipse itself is specified? [message #712172] |
Sun, 07 August 2011 00:41  |
Ben Stover Messages: 104 Registered: January 2010 |
Senior Member |
|
|
As you know Eclipse itself needs a Java JDK to run. So I am NOT talking about developing Java programs inside Eclipse but the JDK for Eclipse itself.
Assume now I want (temporarily) switch the used JDK version/installation for Eclipse.
Can I simply close Eclipse then modify the path entry in file eclipse.ini and restart Eclipse?
Or is there any other place where the responsible JDK for Eclipse is/needs to be specified?
Ben
|
|
|
|
| Re: (no subject) [message #712750 is a reply to message #712333] |
Sun, 07 August 2011 13:53  |
sagar Messages: 12 Registered: August 2011 |
Junior Member |
|
|
If you want to specify the JDK in eclipse.ini file , you need to include
" -vm
C:/Java/jdk1.6.0/jre/bin/client/jvm.dll "
include above statement in your eclipse.ini file . And yes -vm and c:/ ... both should be on separate line and before "openFile" command in ini file, See my eclipse.ini fie below: (Note: One imp thing is that you should uninstall JRE , if any installed in ur PC, and install just JDK 1.6/ or latest one... It should work
-vm
C:/Java/jdk1.6.0/jre/bin/client/jvm.dll
-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
|
|
|
Powered by
FUDForum. Page generated in 0.01723 seconds