

The tutorial is under JavaFX and Intellij Non-modular from IDE sections: This line is no longer needed with JavaFX IntelliJ using Java 12 and JavaFX12.I've followed a tutorial precisely and I can't seem to get it to work. The answer is pretty simple: Remove the VM options! I got this issue when trying to migrate from JAVA 11 to Java 12 (and JavaFX 11 to JavaFX 12). because module javafx.base does not export to unnamed module. : Module ntrols not foundĬaused by: module aphics does not export to unnamed moduleĬaused by: module aphics does not export to unnamed module.Ĭaused by:. If you tried following the docs instructions, you probably got one of these error messages We recomand that you use Java 12 and JavaFX 12 with IntelliJ cause It’s a pain free solution. openjfx docs Set up javaFX 12 on IntelliJ If that is the case, it is required to have the aphics module on the module-path. This error is shown since the Java 12 launcher checks if the main class extends. If you don’t add this line and run this JavaFX IntelliJ project it will compile but you will get this error:Įrror: JavaFX runtime components are missing, and are required to run this application

module-path /path/to/javafx-sdk- 12.0.2/lib -add-modules ntrols,javafx.fxml

Set up javaFX 11 on IntelliJįor Java 11 and Java FX 11 you need to add this line to your VM Options, Go to Run>Edit configurations, an paste this line in VM options: If You’re using Java 12 and JavaFX 12 just jump to the next section. You want to set up javaFX on IntelliJ Idea, Here’s the steps:
