• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Eclipse will always use its internal compiler, no matter what you set for the JVM for that project.
 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic