Meaningless Drivel is fun!*
The moose likes IDEs, Version Control and other tools and the fly likes how to set up different jdk version in eclipse ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "how to set up different jdk version in eclipse ?" Watch "how to set up different jdk version in eclipse ?" New topic
Author

how to set up different jdk version in eclipse ?

Raj Ohadi
Ranch Hand

Joined: Jun 30, 2006
Posts: 316
After I installed Eclipse, where can I specify a jdk version it's going to use ? will it use what I set up in the PATH for my PC (control panel-->System-->Environment variable-->PATH) automatically ? or will it use some jdk that may comes with eclipse software ?

In other words, if I want to use a different jdk version, shall I just change the PATh in my PC's environemnt variable, or shall I change some setting in Eclipse IDE ?
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Go to "Java / Installed JREs" in the preferences. There you can point Eclipse to different JDKs/JREs and tell it which to use per default. You can also configure single projects and launch configurations to use others than the default.

Remember that you might also need to change the compiler compliance setting.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
jQuery in Action, 2nd edition
 
subject: how to set up different jdk version in eclipse ?
 
Similar Threads
Newer version of java
unable to set PATH variable
Need Eclipse Ganemede 3.4.1 Version
How to set different JDKs for different projects in Eclipse 3.0.1?
Eclispe and classpath