JavaFX and Maven in Intellij: JAVA_HOME set but “Unrecognized option --module-path” error persisting
问题 Using Maven and JavaFX in Intellij (2019.1). I have been following this tutorial. I have a curious error that keeps occurring - every time I keep running the javafx:run plugin, it fails, giving this error: Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Unrecognized option: --module-path However, when I put the executable in the javafx-maven-plugin ( <executable>"C:\Program Files\Java\jdk-12.0.1\bin\java.exe"</executable> ) it works.