How to open JavaFX .jar file with JDK 11?
I created a JavaFX project in IntelliJ. I can run project in IntelliJ. I added below code in Configurations): --module-path ${PATH_TO_FX} --add-modules=javafx.controls,javafx.fxml But the output .jar file of project (made with Artifects) doesn't run. I tested these commands, but didn't get any chance: java --module-path %PATH_TO_FX% --add-modules javafx.controls,javafx.fxml -jar Timer.jar java --module-path %PATH_TO_FX% --add-modules javafx.controls Timer.jar Last error log of command line: Error: Could not find or load main class Files\Java\javafx-sdk-11.0.1\lib Caused by: java.lang