This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills: The software developer's life manual and have John Sonmez on-line!
See this thread for details.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set different JDKs for different projects in Eclipse 3.0.1?

 
Torsten Friebe
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using Eclipse 3.0.1 on Windows 2000 and I do have a problem to tell Eclipse that each of my project requires a different JDK version.
How can a set the full JDK (including javac and java) for each different project? Not only the JRE System Library in [Project->Properties->Java Build Path->Libraries].
And of course I want to run the JUnit tests and Ant within Eclipse with that JDK version too.
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eclipse will always use its internal compiler, no matter what you set for the JVM for that project.
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeroen is right... If I am not wrong, Eclipse use its internal compiler, which is the JDK that it uses to run itself...

Well, to change the JDK that is to run the Eclipse, you can specify as follow:
yourProgramFolder/eclipse.exe -vm $JAVA_HOME/bin/javaw.exe

So the internal compiler that Eclipse use to compile your project will be different... Well, you might need to run multiple instances of Eclipse to use different JDKs for each of ur projects...

Hope this helps...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic