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,504
  • 11
  • 47
  • 84

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
  • 67,789
  • 12
  • 98
  • 136
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,573
  • 2
  • 34
  • 36