Java 8 (and 17) on XP

Have a method to get an application work on an older unsupported Windows version? Post it here.
User avatar
K4sum1
Lazy Owner
Posts: 829
Joined: 11 Jan 2021, 07:40
OS: Windows 8.1 x64
Has thanked: 515 times
Been thanked: 241 times
Contact:
United States of America

Java 8 (and 17) on XP

Unread post by K4sum1 »

It's not the easiest or the best method, but it's the one I like to use.

I use AdoptOpenJDK, and up to release 8u242 works. However you will need to mod it.

For XP x64: https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u242-b08/OpenJDK8U-jre_x64_windows_hotspot_8u242b08.msi

For XP x86: https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u242-b08/OpenJDK8U-jre_x86-32_windows_hotspot_8u242b08.msi

To modify it for XP, you'll need these two below.

Orca: https://www.technipages.com/downloads/OrcaMSI.zip

WindowsVersionTroll: https://board.eclipse.cx/viewtopic.php?t=652

Install Orca, then right click the OpenJDK8 installer, and click Edit with Orca.
In Orca, go to Launch Condition, select the one with "Windows 7 or later is required" as the description, right click and drop row.
Save and close Orca, then install OpenJDK8.
Navigate to C:\Program Files\AdoptOpenJDK\jre-8.0.242.08-hotspot\bin, and drag both java.exe and javaw.exe onto winvertroll.exe.

Now you have Java 8 on XP!

For Java 17, you need One Core API. One Core API is unstable, but is the only way to get this working as far as I know.

Get Java 17 from here: https://adoptium.net/temurin/releases/

Select Windows as Operating System, and JRE as Package Type.
Download the one for your system.
Repeat the Orca steps for Java 17 and install.
If this fails, I've only tested with 17.0.5+8, which can be found in the archive. The latest should be fine, but I haven't tested it. I will soon though.

Now you have Java 17 on XP!
R3n who?

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 0 guests