File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to set up different jdk version in eclipse ?

 
Raj Ohadi
Ranch Hand
Posts: 316
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic