aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes How to set different JDKs for different projects in Eclipse 3.0.1? 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 different JDKs for different projects in Eclipse 3.0.1?" Watch "How to set different JDKs for different projects in Eclipse 3.0.1?" New topic
Author

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

Torsten Friebe
Greenhorn

Joined: Aug 05, 2002
Posts: 10
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

Joined: Oct 12, 2000
Posts: 5093
Eclipse will always use its internal compiler, no matter what you set for the JVM for that project.


42
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
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...


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
 
 
subject: How to set different JDKs for different projects in Eclipse 3.0.1?