--add-modules javafx.base to "Runtime Args" in Publish Tool #85
Unanswered
timoreichen
asked this question in
Q&A
Replies: 1 comment 5 replies
-
See this example app's package.json file which adds these runtime args via the package.json file config: ...
"jdeploy": {
...
"args": [
"--add-exports javafx.base/com.sun.javafx.event=ALL-UNNAMED",
"--add-exports javafx.base/com.sun.javafx.runtime=ALL-UNNAMED",
"--add-exports javafx.graphics/com.sun.glass.ui=ALL-UNNAMED",
"--add-exports javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED",
"--add-exports javafx.graphics/com.sun.javafx.application=ALL-UNNAMED",
"--add-exports javafx.graphics/com.sun.glass.ui=ALL-UNNAMED",
"--add-exports javafx.graphics/com.sun.javafx.css=ALL-UNNAMED",
"--add-opens javafx.graphics/javafx.scene=ALL-UNNAMED",
"--add-opens javafx.controls/javafx.scene.control.skin=ALL-UNNAMED"
],
... |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I can publish my app but it doesnt start up on any platform.
My guess that --add-modules is not properly added.
The app can be launched from commandline like this:
java --add-modules javafx.base,javafx.graphics,javafx.fxml,javafx.media,javafx.web --add-exports javafx.base/com.sun.javafx.event=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED --add-exports javafx.graphics/com.sun.javafx.scene.traversal=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-exports javafx.web/com.sun.javafx.webkit=ALL-UNNAMED -jar target/Rocketbatch-1.0.jar
How adding --add-modules etc within the publish tool as "Runtime Args".
Thanks for any help!
Beta Was this translation helpful? Give feedback.
All reactions