openjfx / samples

JavaFX samples to run with different options and build tools
BSD 3-Clause "New" or "Revised" License
578 stars 1.52k forks source link

Error message "Could not create an instance of type org.gradle.initialization.DefaultSettings_Decorated" with JDK 17 #70

Open frankschmitt opened 1 year ago

frankschmitt commented 1 year ago

When trying to run the gradlew version of hellofx with JDK 17, I got this error message:

Could not create an instance of type org.gradle.initialization.DefaultSettings_Decorated

The solution was to change the gradle version in gradle/wrapper/gradle-wrapper.properties from 5.0 to 7.5 (I can create a PR if you like).