Build and deploy javafx application using java11

Using the JavafX JAR export option doesn’t work anymore in Intelij. You can export it as a regular jar with “Jar-From module with dependencies”. This will export a valid Jar, but in order to run it, you need to add your javaFx path and modules to your command.

After you have the jar, the run command should look something like this:

java --module-path PATH_TO_YOUR_JAVAFX_LIB_FOLDER --add-modules javafx.controls,javafx.fxml,,javafx.web -jar yourJar.jar

I made a youtube tutorial with this:

Leave a Comment