make it easy to use JavaFX with java module system and automatic platform classifier #3189
Labels
enhancement
New feature or request
javafx
Issues tied with JavaFX and ScalaFX
jvm
Issues tied to the JVM platform
Is your feature request related to a problem? Please describe.
If you just naively depend on JavaFX lib like so:
then you will get this warning:
"Unsupported JavaFX configuration: classes were loaded from unnamed module ..."
It will also not be the platform dependent jars if you don't put the classifier in accordance with you platform, see platform-specific jars here:
https://repo1.maven.org/maven2/org/openjfx/javafx-controls/22.0.2/
The os classifier for javafx is one of linux, linux-aarch64, mac, mac-aarch64, win.
Describe the solution you'd like
A nice "magic" javafx command or option similar a for toolkit that just enable javafx in a platform-aware way, perhaps something like
Describe alternatives you've considered
You could hard-code both the path and the classifyer but if you e.g. do this:
Then the directive will not work if the repo is cloned on another platform.
Additional context
See also #3188
The text was updated successfully, but these errors were encountered: