2

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

16
  • Show us the eclipse.ini you are using. Commented Sep 19, 2014 at 9:11
  • hi thanks for the coment, This is my eclipse.ini file Commented Sep 19, 2014 at 9:13
  • Edit the question rather than trying to put things in a comment. Commented Sep 19, 2014 at 9:14
  • Put that in the question, it is important to see where the line breaks are. Commented Sep 19, 2014 at 9:15
  • 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" Commented Sep 19, 2014 at 9:20

1 Answer 1

0

@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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.