F5F Stay Refreshed Software Operating Systems Java 7 and 8 installed together on a single computer?

Java 7 and 8 installed together on a single computer?

Java 7 and 8 installed together on a single computer?

Y
YouriiruoY
Member
212
11-26-2023, 03:57 AM
#1
Hi, just a quick question that I couldn't find a clear answer for on google... Can I install java 8 without removing java 7, and be able to run programs by specifying which version to use? So one program will be using C:\Program Files\Java\jre7\java.exe And another program will be running C:\Program Files\Java\jre8\java.exe Is this possible? Thanks I want to upgrade to java 8 to run Minecraft, but I think the modded crackpack server I run needs to use java 7...
Y
YouriiruoY
11-26-2023, 03:57 AM #1

Hi, just a quick question that I couldn't find a clear answer for on google... Can I install java 8 without removing java 7, and be able to run programs by specifying which version to use? So one program will be using C:\Program Files\Java\jre7\java.exe And another program will be running C:\Program Files\Java\jre8\java.exe Is this possible? Thanks I want to upgrade to java 8 to run Minecraft, but I think the modded crackpack server I run needs to use java 7...

R
reidlr
Member
67
11-28-2023, 05:38 AM
#2
I tested it and it functioned. For others attempting the same, avoid starting the server via 'java' in the batch file (which won't work with Java 8 installed). Instead use "C:\Program Files\Java\jre7\java.exe" so the server runs Java 7.
R
reidlr
11-28-2023, 05:38 AM #2

I tested it and it functioned. For others attempting the same, avoid starting the server via 'java' in the batch file (which won't work with Java 8 installed). Instead use "C:\Program Files\Java\jre7\java.exe" so the server runs Java 7.

T
TheKlesty_YT
Junior Member
18
12-14-2023, 10:42 AM
#3
I have Java 7 and 8 installed. You can avoid needing the exact path by setting your JAVA_HOME variable to point to Java 7. It’s not a difficult task. My Eclipse setup for Java development offers around five versions—32 and 64-bit, with various updates across editions. Some may need removal, lol.
T
TheKlesty_YT
12-14-2023, 10:42 AM #3

I have Java 7 and 8 installed. You can avoid needing the exact path by setting your JAVA_HOME variable to point to Java 7. It’s not a difficult task. My Eclipse setup for Java development offers around five versions—32 and 64-bit, with various updates across editions. Some may need removal, lol.