Backstory: I'm trying to distribute my openJDK11,openJFX application to my friend. I'm using this tutorial: https://medium.com/azulsystems/using-jlink-to-build-java-runtimes-for-non-modular-applications-9568c5e70ef4
You can see here that javafx is listed in my dependencies:
You can see here that my module-info is set up as might be required to run the application:
module FractalFriend_m {
requires javafx.base;
requires javafx.controls;
requires javafx.fxml;
requires javafx.graphics;
opens com.potatospy;
}
You can see here that my VM Options are entered correctly:
--module-path=C:\Users\USERNAME\Documents\javafx-sdk-11.0.2\lib --add-modules=javafx.controls,javafx.fxml,javafx.base,javafx.graphics
Running:
jdeps --module-path C:\Users\USERNAME\Documents\javafx-sdk-11.0.2\lib --list-deps FractalFriend_m.jar
Results in:
java.base
javafx.base
javafx.controls
javafx.fxml
javafx.graphics
And finally, I run jlink to hopefully produce something anyone can run:
jlink --no-header-files --no-man-pages --compress=2 --strip-debug --add-modules javafx.controls,javafx.fxml,javafx.base,javafx.graphics --output java-runtime
Which results in:
Error: Module javafx.base not found