Solved How to run multiple versions of Java.

BorisTheAnimal

Furry Pride
Pro User
VIP
Local time
10:44 PM
Messages
1,411
Location
Milkyway
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom build
OS
Windows 7 Home Premium
CPU
i5-3570k
Motherboard
ASUS Sabertooth z77
Memory
16 GB DDR3 G Skill Sniper
Graphics Card(s)
GIGABYTE GeForce GTX 970 GV-N970WF3OC-4GD
Monitor(s) Displays
ASUS ROG PG278Q
Screen Resolution
2560x1440@60Hz/120Hz/144Hz
Hard Drives
56GB KINGSTON SVP200S37A60G
512GB Crucial MX100
1863GB Seagate ST2000DM001-1CH164
2795GB Seagate ST3000DM001-9YN166
PSU
Corsair GS800
Case
Storm Trooper Stryker White
Keyboard
Logitech G910 Orion Spark
Mouse
Logitech G502
Antivirus
MSE
Browser
Firefox/Chrome
Other Info
Logitech G633
Logitech Mouse Matt
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 Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Elitebook 8540p
OS
Windows 7 Pro 32
CPU
Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz
Motherboard
Hewlett-Packard 1521
Memory
4,00 GB (Usable 2,98)
Graphics Card(s)
NVIDIA NVS 5100M
Sound Card
NVIDIA High Definition Audio
Screen Resolution
1600x900
Hard Drives
INTEL SSDSA2CW120G3
Antivirus
F-Secure Internet Security
Browser
IE, Firefox, Opera
Other Info
Sandboxie,
SRP (Software Restriction Policy),
EMET (Enhanced Mitigation Experience Toolkit),
WFC (Windows Firewall Control by BiniSoft),
Malwarebytes Premium
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom build
OS
Windows 7 Home Premium
CPU
i5-3570k
Motherboard
ASUS Sabertooth z77
Memory
16 GB DDR3 G Skill Sniper
Graphics Card(s)
GIGABYTE GeForce GTX 970 GV-N970WF3OC-4GD
Monitor(s) Displays
ASUS ROG PG278Q
Screen Resolution
2560x1440@60Hz/120Hz/144Hz
Hard Drives
56GB KINGSTON SVP200S37A60G
512GB Crucial MX100
1863GB Seagate ST2000DM001-1CH164
2795GB Seagate ST3000DM001-9YN166
PSU
Corsair GS800
Case
Storm Trooper Stryker White
Keyboard
Logitech G910 Orion Spark
Mouse
Logitech G502
Antivirus
MSE
Browser
Firefox/Chrome
Other Info
Logitech G633
Logitech Mouse Matt

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Elitebook 8540p
OS
Windows 7 Pro 32
CPU
Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz
Motherboard
Hewlett-Packard 1521
Memory
4,00 GB (Usable 2,98)
Graphics Card(s)
NVIDIA NVS 5100M
Sound Card
NVIDIA High Definition Audio
Screen Resolution
1600x900
Hard Drives
INTEL SSDSA2CW120G3
Antivirus
F-Secure Internet Security
Browser
IE, Firefox, Opera
Other Info
Sandboxie,
SRP (Software Restriction Policy),
EMET (Enhanced Mitigation Experience Toolkit),
WFC (Windows Firewall Control by BiniSoft),
Malwarebytes Premium
Never mind that mark solved, it never gave me the option to uninstall a previous version.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom build
OS
Windows 7 Home Premium
CPU
i5-3570k
Motherboard
ASUS Sabertooth z77
Memory
16 GB DDR3 G Skill Sniper
Graphics Card(s)
GIGABYTE GeForce GTX 970 GV-N970WF3OC-4GD
Monitor(s) Displays
ASUS ROG PG278Q
Screen Resolution
2560x1440@60Hz/120Hz/144Hz
Hard Drives
56GB KINGSTON SVP200S37A60G
512GB Crucial MX100
1863GB Seagate ST2000DM001-1CH164
2795GB Seagate ST3000DM001-9YN166
PSU
Corsair GS800
Case
Storm Trooper Stryker White
Keyboard
Logitech G910 Orion Spark
Mouse
Logitech G502
Antivirus
MSE
Browser
Firefox/Chrome
Other Info
Logitech G633
Logitech Mouse Matt
Back
Top