Issue
I can run the JavaFX app with the following code
java -jar --module-path $PATH_TO_FX --add-modules {required modules seperated by commas} {path to jar file} myFXapp.jar
But how I can add the java module permanently to JVM to run JavaFX dependent app like below
java -jar myFXapp.jar
Solution
Use a distribution that includes JavaFX like liberica, or create a custom runtime using jlink.
Answered By - jewelsea
Answer Checked By - Cary Denson (JavaFixing Admin)