Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 605
user77826 Avatar asked Jun 09 '09 20:06

user77826


People also ask

Can I run 2 versions of Java at the same time?

It is very possible to run multiple versions of Java on the same machine so you can run your existing applications and Ignition at the same time.

Can we have 2 versions of JDK installed?

Yes, you can. Just use full path names when invoking javac , java , etc. or set your PATH environment variable to point to the appropriate jdk/bin location. The IDEs usually allow defining multiple JDKs/JREs, and you can choose which one to use for every project.

Can we have two JDK versions in Windows?

Look at the picture below, we have installed two JDK's of version 16 and 17 respectively in the folder F:\Java. According to your requirement, You can download JDKs of different versions and save them into different folders on different drives. Now open Command Prompt then type java and press enter.

Can I install Java 8 and Java 11 together?

I know you can install both. Java 8 and Java 11 and keep them at the same time...


1 Answers

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.

like image 172
alamar Avatar answered Sep 28 '22 11:09

alamar