2
votes

I want to set java path to a specified java directory in eclipse, not the default installed java path. I want to run eclipse by using java from my specified path. But all the time eclipse runs by using the default installed java path. I have specified the Path in the "eclipse.ini" file but this path is not used by eclipse to run.. Please hep me... This is my "eclipse.ini" file

-startup

plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar

--launcher.library

plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20120913-144807

-product

com.android.ide.eclipse.adt.package.adtproduct

-showsplash

org.eclipse.platform

--launcher.XXMaxPermSize

256m

--launcher.defaultAction

openFile

-vm

/home/bibin/Documents/ADTBUNDLE/jdk1.6.0_17/bin/java

-vmargs

-Dosgi.requiredJavaVersion=1.6

-XX:MaxPermSize=256m

-Xms512m

-Xmx1024m

1
Show us the eclipse.ini you are using. - greg-449
hi thanks for the coment, This is my eclipse.ini file - Bibin Jose
Edit the question rather than trying to put things in a comment. - greg-449
Put that in the question, it is important to see where the line breaks are. - greg-449
I have set the path and run the eclipse it runs fine but it uses the java path which i have installed. not the path specified in "eclipse.ini file" - Bibin Jose

1 Answers

0
votes

@Bibin Jose I think you're confused, The eclipse.ini is a file where the eclipse configuration to start is. In "Windows>>preference>>java>>installed JRE" is where you can set which JRE you want to compile you project. You can add a lot of JRE in preference. If you want, click in "Add" button, choice "Standar VM" and click in next button, finally set the path where your other jdk is installed.