I am using openjfx 11 with java 11.
If I launch the app with mvn, it works fine. I have those dependencies added:
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>11</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>11</version>
</dependency>
But if I run within Intellij Idea (2018.2), it gives me:
Error: JavaFX runtime components are missing, and are required to run this application
IntelliJ idea adds the jars to classpath.