Building program with jpackage for Windows

I have arrived at a point of my OPENRNDR program which I want to export as a standalone Windows application.

When i use ./gradlew clean shadowJar, it exports a .jar file which I can run and it works perfectly.

However, when i use ./gradlew clean jpackage, it compiles a .exe file which returns the error: “failed to launch JVM”.

Obviously JVM is present and running in my machine as the .jar file runs perfectly.
Is there something I should add to my build file to make it compile a functional Windows .exe file?

Thanks!

Nice that you made it this far :slight_smile:

In GitHub - openrndr/openrndr-template: A feature rich template for creating OPENRNDR programs based on Gradle/Kts it mentions gradlew jpackageZip. Does that work any better?