openjfx / javafx-gradle-plugin

Gradle plugin that makes it easy to work with JavaFX 11+

Home Page:https://openjfx.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Non-modular support to get rid of JavaFX 16 warning

ripcurlx opened this issue · comments

Using the plugin in a non-modular project prints following warning:

Unsupported JavaFX configuration: classes were loaded from 'unnamed module @41005828'

This is because of https://bugs.openjdk.java.net/browse/JDK-8256362.

Is there a configuration option for the plugin to add the openjfx modules correctly as modules for a non-modular project?

This is not something which can be handled via the plugin. The warning comes from JavaFX and as stated in the linked JBS issue, JavaFX should be loaded from moudule-path and not from classpath.