0

My PC : Win 7 32-bit , Eclipse Kepler

Initially, I had JDK 1.7 . Then ,due to my project , I have to now run jdk 1.6 , which I just installed. File name :"jdk-6u25-windows-i586.exe" .I ran it and installed it in my G:// drive . Now , how do I get my Eclipse IDE to run that version (1.6) of jdk ?

Thanks.

Gaurang Tandon
  • 6,110
  • 10
  • 44
  • 79

2 Answers2

2

To setup the compiler

Right click on your Project->Properties->Java Compiler->Select 1.6

To set the jre:

Menu->Window->Preferences->Java->Installed JREs- > Add JDK6/jre and remove others.
Juned Ahsan
  • 66,028
  • 11
  • 91
  • 129
0
Window -> Preferences-> Java-> Installed Jres -> Add 1.6 -> select

Will set-up the global default JRE for your IDE.

If you want to set it up on per project bases you should use:

Project Properties -> Preferences-> Java-> Installed Jres -> Add 1.6 -> select
rocketboy
  • 9,277
  • 1
  • 33
  • 36