I am running Processing 4.0b1 on Win10x64.
When I “export application” and choose the “Embed Java” option, the .exe launches and runs fine.
However… When I “export application” and do NOT choose “Embed Java”, clicking the .exe file results in an error dialog saying “This application requires a Java Runtime Environment 11.0.11.” Closing that dialog opens a web page where Java runtimes can be downloaded.
I downloaded the current “OpenJDK 11” (11.0.12) from that web page and installed it. In the install options, I selected to have it added to my PATH. But still get the same issue – launching the exported Processing app says “This application requires a Java Runtime Environment 11.0.11.”
I uninstalled older versions of JDK. Still the same issue. Rebooted the machine, same problem.
At a command prompt, typing “java -version” says:
openjdk version “11.0.12” 2021-07-20
OpenJDK Runtime Environment Temurin-11.0.12+7 (build 11.0.12+7)
OpenJDK 64-Bit Server VM Temurin-11.0.12+7 (build 11.0.12+7, mixed mode)
…and “where java” says:
C:\Program Files\Eclipse Foundation\jdk-11.0.12.7-hotspot\bin\java.exe
…and the first item in my Path is:
C:\Program Files\Eclipse Foundation\jdk-11.0.12.7-hotspot\bin;
Also tried uninstalling 11.0.12 and installing the older 11.0.11 – thinking perhaps the message saying it required “11.0.11” meant what it said. No luck, still get the same error.
So I’m stumped. The exported Processing app says it needs the Java Runtime, but the Java Runtime is already installed. Tried all this on another Windows10x64 machine – same result.
What am I doing wrong? How do I get the processing app (exported without Java runtime) to use the Java Runtime already installed on Windows?