BeW
BeW

Reputation: 11

Windows 7 64-bit, Configuring 2 versions of Java

Windows 7 64bit. I have a web based application that needs to use the newest version of java (1.7.0.45) and I have another software install the needs java versions (1.5.0.15 & 1.4.2). I'm just unsure how to set the PATH/VARIABLE for this to work properly.. any help would be greatly appreciated.

I have seen several posts & answers regarding very similar situations to this, but I am just unsure how to make this work.

Upvotes: 1

Views: 115

Answers (1)

Dark Knight
Dark Knight

Reputation: 8337

As mentioned by @Moshe here.

It is absolutely possible to install side-by-side several JRE/JDK versions. Moreover, you don't have to do anything special for that to happen, as Sun is creating a different folder for each (under Program Files).

There is no control panel to check which JRE works for each application. Basically, the JRE that will work would be the first in your PATH environment variable. You can change that, or the JAVA_HOME variable, or create specific cmd/bat files to launch the applications you desire, each with a different JRE in path. Just like below,

set JAVA_HOME=C:\...\j2dskXXX to change the JAVA_HOME environment.

Upvotes: 1

Related Questions