I need to add default JVM options to my jar, when build with Gradle. From the documentation I got that I have to set:
applicationDefaultJvmArgs = [\"-Djavafx
applicationDefaultJvmArgs is provided by the Application plugin. So if you apply that plugin, the error would probably go away, and you should be able to execute the program by issuing gradle run once you set the mainClassName property to the fully qualified class name, the main method of which you want to invoke.