running:
gradle jlink
getting:
Task :createMergedModule FAILED
/Volumes/Dev/qirl/build/jlinkbase/tmpjars/qirl.merged.module/module-info.java:320: error: module not found: javafx.graphics
requires javafx.graphics;
Suggestions?
running:
gradle jlink
getting:
Task :createMergedModule FAILED
/Volumes/Dev/qirl/build/jlinkbase/tmpjars/qirl.merged.module/module-info.java:320: error: module not found: javafx.graphics
requires javafx.graphics;
Suggestions?
I think it is because JavaFX is no longer bundled by default by various JDKs. You can find some JDK which do, but you might be better to off to use OpenJFX.
More I don’t really know. We ran into this issue on the asciidoctor-gradle-plugin when we wanted to add support for something that used JavaFX.
I have followed https://openjfx.io/openjfx-docs/#gradle on how to install both openjdk and openjfx. Running the application works, only jlink that doesn’t work.
I have followed Getting Started with JavaFX
What is your JAVA_HOME
environment variable pointing to?
/Library/Java/JavaVirtualMachines/openjdk-12.0.1.jdk/Contents/Home
As @Schalk_Cronje said
I think it is because JavaFX is no longer bundled by default by various JDKs.
I don’t think that JavaFX is bundled with openJDK by default. Perhaps this stack overflow thread is a good place to start
jlink plugin is from 2018. The stack overflow post is six years old. It is highly unlikely that jlink does not work with the way javafx is set up today.