Avatar of SooHow Cheng
SooHow ChengFlag for Singapore asked on

How to run old Java version in MS Windows Server 2019?

Currently, this old java version - 7.0.170 is running on a old MS Windows Server 2008 (64-bit). This java is in 32-bit (x86), and we are thinking of migrating this java to a new MS Windows Server 2019. Is this possible and how to do it?

Thanks in advance.
Windows Server 2019JavaWindows OS

Avatar of undefined
Last Comment
dpearson

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
David Johnson, CD

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
SooHow Cheng

This is because only this version of java can support the display
dpearson

You can run multiple versions of Java side by side on a machine if you want.

The key is the JAVA_HOME environment variable.  You need to make sure that is set to the correct Java version before starting whatever legacy Java app you are looking to run.  E.g. You may want to add a short batch file which sets JAVA_HOME explicitly and then launches the app and always run it from this batch file.  And make sure to use this variable to locate the "java.exe" executable, not the PATH.  (Or if that's a problem, modify the path locally in the same batch file - env variable changes are contained within the shell making them).

If you do that, it should be fine.  You can run the 32-bit version on a 64-bit machine.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck