Jump to content

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...

NEW PC build: Blank Heaven   minimalist white and black PC     Old S340 build log "White Heaven"        The "LIGHTCANON" flashlight build log        Project AntiRoll (prototype)        Custom speaker project

Spoiler

Ryzen 3950X | AMD Vega Frontier Edition | ASUS X570 Pro WS | Corsair Vengeance LPX 64GB | NZXT H500 | Seasonic Prime Fanless TX-700 | Custom loop | Coolermaster SK630 White | Logitech MX Master 2S | Samsung 980 Pro 1TB + 970 Pro 512GB | Samsung 58" 4k TV | Scarlett 2i4 | 2x AT2020

 

Link to comment
https://linustechtips.com/topic/209647-java-7-and-8-on-the-same-pc/
Share on other sites

Link to post
Share on other sites

Ok I tried it and it worked.

For anyone trying to do the same thing, instead of running the server by 'java' in the batch startup file (which will not work when java 8 is installed) you need to do "C:\Program Files\Java\jre7\java.exe" and the server will use java 7 :)

NEW PC build: Blank Heaven   minimalist white and black PC     Old S340 build log "White Heaven"        The "LIGHTCANON" flashlight build log        Project AntiRoll (prototype)        Custom speaker project

Spoiler

Ryzen 3950X | AMD Vega Frontier Edition | ASUS X570 Pro WS | Corsair Vengeance LPX 64GB | NZXT H500 | Seasonic Prime Fanless TX-700 | Custom loop | Coolermaster SK630 White | Logitech MX Master 2S | Samsung 980 Pro 1TB + 970 Pro 512GB | Samsung 58" 4k TV | Scarlett 2i4 | 2x AT2020

 

Link to post
Share on other sites

  • 2 weeks later...

I have java 7 and 8 both installed. You can prevent having to put the exact path by specifying your JAVA_HOME variable to point to java 7. Not hard thing to do. My eclipse environment for java development has like five versions of java available to me. 32 and 64 bit variations. Various updates to different editions. Some need removed lol

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×