Here is the step-by-step process to install the proper 64-bit version.
To test if it worked: Open a new CMD window and type: download javaw.exe 64 bit
(Note: The version number 1.8.0_401 will change based on the latest update.) Here is the step-by-step process to install the
"C:\Program Files\Java\jre-17\bin\javaw.exe" -jar MyApp.jar download javaw.exe 64 bit