Closed verycreativename123 closed 5 years ago
I found the solution here: https://github.com/javafxports/openjdk-jfx/issues/236
In short, the main entry point cannot extend from Application
. The workaround is to create a different main class that then calls the JavaFX main class.
I've built a simple project using Gradle and JavaFX with this plugin.
gradle run
works fine and runs my app.gradle build
produces a .zip of my project inbuild/distributions
. When I open the zip I see abin
folder and alib
. The lib folder contains a ton of jars, includingjavafx-base
,javafx-controls
, and so forth. The bin folder contains a Unix executable. When I run this Unix executable (I'm on a Mac), I receive the following error:Yet, everything runs fine when I run via
gradle run
.What am I missing?