Using ImageJ with Open JDK in Windows 10?

Has anyone had success configuring their Windows 10 system to use ImageJ with Open JDK? With the upcoming changes to Java’s licensing terms, I think a lot of people will need to switch to Open JDK. I tried the solution described in the FAQ, but no luck.

Thank you.

Yes, I succeeded for a test to do so a while ago with OpenJDK 11.

Change the ImageJ.cfg file (in the installation directory) to point to the OpenJDK. So it looks something like (adjust the path!):

.
C:\openjdk11\jdk-11\bin\javaw.exe
-Xmx640m -cp ij.jar ij.ImageJ

Thank you for your response.

Here is what I have for my ImageJ.cfg file:
.
C:\Program Files\Java\jdk-11.0.2\bin\javaw.exe
-Xmx6012m -cp ij.jar ij.ImageJ

ImageJ responds with this message at startup:

Error Could note create the Java Virtual Machine.
Error: A fatal exceptions has occurred.  Program will exit.

Any suggestions?

Thanks again

Could you please copy the OpenJDK to a path without space and adjust the path accordingly. Just a guess to make sure if the ImageJ config allows paths with space.

Here is the official troubleshoot page (which allows spaces however):

https://imagej.nih.gov/ij/docs/install/windows.html