16

I am having two JRE / SDK in my development environment, however it was necessary in my situation to set JAVA_HOME to 1.4.2, this is causing my eclipse IDE to stop running as it required 1.6 and above.

May i know how i can modify eclipse ini or environment home to use my other 1.6 installation?

Oh Chin Boon
  • 23,028
  • 51
  • 143
  • 215
  • possible duplicate of [How to run eclipse without running JRE install?](http://stackoverflow.com/questions/789792/how-to-run-eclipse-without-running-jre-install) – Oh Chin Boon Jul 30 '11 at 07:01
  • 1
    http://stackoverflow.com/questions/789792/how-to-run-eclipse-without-running-jre-install – Oh Chin Boon Jul 30 '11 at 07:01

3 Answers3

22

Please try the eclipse.ini entry above the varargs (the following two lines must be two lines in the eclipse.ini file)

-vm
C:\Java\JDK\1.5\bin\javaw.exe

Find the JVM

Michael Burr
  • 333,147
  • 50
  • 533
  • 760
Markus Lausberg
  • 12,177
  • 6
  • 40
  • 66
6

Right click the project in Package Explorer -> Configure Build Path

Right click the project in Package Explorer -> Configure Build Path

Add Library -> JRE System Library

Add Library -> JRE System Library

Set JRE system library to JDK

Set JRE system library to JDK

Verify JDK is the reference library

Verify JDK is the reference library

emallove
  • 1,417
  • 1
  • 17
  • 22
5

From the menu in the top.. Proceed as follows--

Project-->Properties--> Java Build Path--> Libraries--> JRE System Library.

Now click Edit . Select Alternate JRE. Click Installed JRE. Provide path to your other JDK. Then FINISH.

That's it.

Nikhil Mahajan
  • 523
  • 5
  • 17