You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am exporting a project on Linux, and creating an .exe for Windows. When I try to run the .exe on a Windows 10 machine, I am given this error: "This application requires a Java Runtime Environment 17". However, I have already installed JRE 17, the JAVA_HOME environment variable is set correctly, and the PATH environment variable is set up to point to the correct version of Java.
Expected Behavior
Application starts up and runs as expected.
Current Behavior
Error message described above. When I run java -version it shows the expected version.
Steps to Reproduce
Export to Windows via Linux
Install JRE 17
Set JAVA_HOME and PATH environment variables appropriately
Try to run application.
Your Environment
Processing version: 4, rev 1291
Operating System and OS version: Arch Linux
Other information: Exporting to Windows target, running on Windows 10
Possible Causes / Solutions
I can skim the source code to see what may be going on, I haven't taken the time to do that.
Additionally, I'm using a couple of weird built-in Java libraries, like the clipboard and gzip. I don't expect that using those would be causing this issue however.
Java 8 is also installed on this machine, but I don't think any environment variables are pointing to it.
The text was updated successfully, but these errors were encountered:
It's probably the Java 8 on your machine inserting itself somehow… Try copying the JRE to a folder called java adjacent to that .exe. (So that java/bin contains java.exe and that sort of thing.) Does that work?
Hey, thanks so much for checking this out (and fixing it, nice). I was going to give your suggestion a try when I had Windows access again. Keep up the awesome work.
Created by: alekratz
Description
I am exporting a project on Linux, and creating an .exe for Windows. When I try to run the .exe on a Windows 10 machine, I am given this error: "This application requires a Java Runtime Environment 17". However, I have already installed JRE 17, the JAVA_HOME environment variable is set correctly, and the PATH environment variable is set up to point to the correct version of Java.
Expected Behavior
Application starts up and runs as expected.
Current Behavior
Error message described above. When I run
java -version
it shows the expected version.Steps to Reproduce
Your Environment
Possible Causes / Solutions
I can skim the source code to see what may be going on, I haven't taken the time to do that.
Additionally, I'm using a couple of weird built-in Java libraries, like the clipboard and gzip. I don't expect that using those would be causing this issue however.
Java 8 is also installed on this machine, but I don't think any environment variables are pointing to it.
The text was updated successfully, but these errors were encountered: