Component Details - Using IntelliJ IDEA 2017.1 CE and jdk-9-ea+154
main() -
Set se
I got the same error under Arch Linux. The package java-openjfx installs its libraries into the lib directory of the openjdk, which seems to cause problems.
I found a workaround by adding not the whole lib directory but only the needed libraries instead.
In project structure > Libraries > + > Java > /usr/lib/jvm/default/lib > select needed libraries (holding ctrl) should look something like this
Then in Run Configurations set the VM Options accordingly
--module-path /usr/lib/jvm/java-14-openjdk/lib/javafx.base.jar:/usr/lib/jvm/java-14-openjdk/lib/javafx.controls.jar:/usr/lib/jvm/java-14-openjdk/lib/javafx.graphics.jar --add-modules=javafx.controls
For my project it was enough to only add controls as module but the path to base and graphics were required to get it to run.