Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to run multiple versions of Java.

24 Feb 2015   #1
BorisTheAnimal

Windows 7 Home Premium
 
 
How to run multiple versions of Java.

Hiyo.

I want to be able to run multiple versions of Java on my computer, I would like to set it so that one program uses the older version of Java but all other programs use the latest release, I mean this cannot be impossible right?


My System SpecsSystem Spec
.
24 Feb 2015   #2
Tookeri

Windows 7 Pro 32
 
 

To start a Java app for another Java version than the default one, create a batch file and change value for the environment variable JAVA_HOME before calling the specific Java app.

I'm not sure what Java version is the default one but hopefully the latest one installed. Open a command prompt and type java -version
Type echo %JAVA_HOME% to see the default value.
Type set JAVA_HOME=newvalue where newvalue is the path to the other Java versions home folder. Then type java -version again to see if the change worked.

You might have to change the PATH variable as well if the above doesn't work.
My System SpecsSystem Spec
25 Feb 2015   #3
BorisTheAnimal

Windows 7 Home Premium
 
 

Quote   Quote: Originally Posted by Tookeri View Post
To start a Java app for another Java version than the default one, create a batch file and change value for the environment variable JAVA_HOME before calling the specific Java app.

I'm not sure what Java version is the default one but hopefully the latest one installed. Open a command prompt and type java -version
Type echo %JAVA_HOME% to see the default value.
Type set JAVA_HOME=newvalue where newvalue is the path to the other Java versions home folder. Then type java -version again to see if the change worked.

You might have to change the PATH variable as well if the above doesn't work.
And what if I have an older one installed but I wanna keep it and install the latest one?

And well it is a game I'm playing that need to have the older version of java..
My System SpecsSystem Spec
.

25 Feb 2015   #4
Tookeri

Windows 7 Pro 32
 
 

Then don't uninstall the older one Java 8 and later comes with an option during install to uninstall older Java versions. If you skip that you'll end up with two versions installed. You can verify in the install options where the new version will be installed.

I don't remember exactly but I assume the newest version will be the default one.

More info:
https://www.java.com/en/download/hel...e_download.xml
https://www.java.com/en/download/faq...erversions.xml
My System SpecsSystem Spec
27 Feb 2015   #5
BorisTheAnimal

Windows 7 Home Premium
 
 

Never mind that mark solved, it never gave me the option to uninstall a previous version.
My System SpecsSystem Spec
Reply

 How to run multiple versions of Java.




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
How to use two versions of JAVA
I have an old (very old) program that I just bought that is very useful, but it has caused a bit of a problem (which I fixed), but now it won't run. When you install the program from CD's, it also installs JAVA v 1.3 (yea, I know, it's ancient). After installation, the program works fine. ...
Software
Can multiple versions of IE
I have a windows 7 machine with IE10 on it and when connecting my work site they use a cisco VPN service but was told it will only work with a older version of IE8 or I can not log in, so here is my question, can I add another version of IE on my machine it would have to be IE8 and would it cause...
Browsers & Mail
Help - Would like to automate uninstallation of ALL versions of Java
We use a remote management system capable of running scripts on computers in the form of powershell, visualbasic, and batch files, and are interested in using this capability to automatically update Java on all workstations. We are already of capable of installing the latest version, but one of the...
Software
removing previous versions of Java
Secunia tells me I have redundant and insecure previous versions of Java on my Windows 7 premium 64 bit system. How do I get rid of these? I do not see them in the Add/remove programs. I downloaded something called "javara" and ran it but after it "uninstalled" older versions of java, Secunia...
Software
JavaRa - Update and Clean Up Old Versions of Java
JavaRa checks for latest versions of Java and allows to safely remove the old ones which take up space on the hard drive. Source: Cleaning Up Old Java Installation files In Windows
Software
Serious New Java Flaw Affects All Versions of Windows
read here.....Serious New Java Flaw Affects All Current Versions of Windows | threatpost
System Security


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:05.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App