Sunday, April 3, 2011

Running Two Versions of Java JDK

I primarily use JDeveloper 10 with JDK 1.4.2 on Vista. I would like to install Eclipse and have it run the latest JDK 6.

Is this possible without conflict?

Ideally I would like to just use JDeveloper and switch back/forth between JDK versions. Is this possible?

From stackoverflow
  • It is indeed possible, you can have as many JDKs in system as you wish. Just install them into different directories, then you can add a new JDK to your IDE (they support having multiple).

    You can choose one on per-project basis.

    Software Monkey : Indeed - I have all the latest updates of Java 2, 3, 4, 5 and 6 installed, and a codebase that compiles each package to differing JDK versions (e.g. my GUI programs target Java 6, but others might target Java 3, while all core library packages target Java 2).
  • Sure, this is no problem.

  • I am not sure with JDeveloper 10, but in eclipse you can specify which installed JDK you wish you use under window>preferences>Java>Installed JREs.

  • If you select project properties in Eclipse, then Java Build Path, you can choose a different JRE to use when building the project.

0 comments:

Post a Comment