Open jtdevos opened 3 years ago
Hello @nobodyman,
I got the same error, and during some investigation, I found that javafx-version=16 is working.
I definitely couldn't get it to work with javafx-version 17. (And there's no running example using it here: https://github.com/openjfx/samples)
I've tried with JDK from 11 to 17.
My env: OS: Mac OS 10.15.7 Maven: Apache Maven 3.8.3 (ff8e977a158738155dc465c6a97ffaf31982d739) JDK: ["openjdk version "11.0.2" 2019-01-15", "openjdk version "17" 2021-09-14"]
Interestingly it also works with JavaFX17 when module-info.java is deleted.
Upgrade org.openjfx:javafx-controls
to version 17.0.1
in the pom.xml
.
According to the "Getting Started with JavaFX" documentation, I can use maven to generate a simple JavaFX project with the following command:
While this command does appear to generate some project files, the resulting project does not compile. Here is the output from the
mvn compile
command:Some environment details: OS: Windows 10 Home 19043.1237 Maven: v3.8.2 JDK: Amazon Coretto jdk17.0.0_35