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?
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.
Windows OS
This topic area includes legacy versions of Windows prior to Windows 2000: Windows 3/3.1, Windows 95 and Windows 98, plus any other Windows-related versions including Windows Mobile.
ASKER