Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

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...
 
We can fix it! We just need some baling wire, some WD-40, a bit of duct tape and this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic