Issue with windows installer


Marius Klemetsen <mariusdk@...>
 

I have the same issue as Luis Enrique Ramos Garcí with not being able to download GATE. I post this now given that Luis still has not gotten an answer.
The problem is that I am asked about my Java Runtime Environment when running the installer.  However, when I download the latest version (openjdk 17.0.5 2022-10-18) I get the same message.
The message is: 

GATE requires a Java Runtime Environment and works best with a JDK.
Click OK to download one - minimum version 1.8.0.
 


Ian Roberts
 

Does the same workaround as Luis suggested work for you (using java -jar to run both the installer and GATE Developer itself)?

Which exact openjdk did you download, and which options did you use when installing it?  The .exe wrappers for both the installer and the gate.exe launcher rely on the presence of particular Oracle-specific keys in the Windows Registry to find your java installation, so you will need to use an openjdk package that sets those keys as part of its installation.  My current understanding (I don't have access to a Windows machine to check) is that the .msi installers for both the Azul Zulu and Eclipse Temurin versions of openjdk offer an option to set the JavaSoft/Oracle compatibility registry keys, but this is not enabled by default.  I don't know about other packages like Amazon Corretto.  If you didn't set this option try re-installing your JDK with the option enabled.

If you're just using a zip download of the JDK rather than an .msi installer then the .exe launchers will never be able to see that copy of Java, and your only option is to run the installer & gateLauncher using java -jar (or javaw -jar), which is essentially all that the EXEs are doing anyway.

Ian

On 15/01/2023 13:50, Marius Klemetsen wrote:

I have the same issue as Luis Enrique Ramos Garcí with not being able to download GATE. I post this now given that Luis still has not gotten an answer.
The problem is that I am asked about my Java Runtime Environment when running the installer.  However, when I download the latest version (openjdk 17.0.5 2022-10-18) I get the same message.
The message is: 

GATE requires a Java Runtime Environment and works best with a JDK.
Click OK to download one - minimum version 1.8.0.
 


-- 
Ian Roberts               | Department of Computer Science
i.roberts@...  | University of Sheffield, UK


Marius Klemetsen <mariusdk@...>
 

You were right about the JavaSoft/Oracle compatibility registry keys. I ran the "Eclipse Temurin JDK with Hotspot 17.0.5+8 (x64) Setup" (i.e. the JDK installer) once more. Clicked "Change", clicked "JavaSoft/Oracle compatibility registry keys", and changed it to "Will be installed on local hard drive". It seems to have done the trick. 

Btw. the workaround by Luis worked before I made the mentioned changes.

Thanks for the help!