I was using Intellij Idea as my IDE. Since I needed to use css files, I've installed Intellij Ultimate. Now javaFx is not working on both of them.
Thrown exception:
Error occurred during initialization of boot layer java.lang.module.FindException: Module javafx.controls not found
The VM settings are exacly the same, as in the previous IDE. Suprisingly- if I put only one jar in --add-modules="", the missing jar, shown in the console, is the one present in the instruction above. E.g:
--module-path="C:\\javafx-sdk-11.0.1\\lib" --add-modules=javafx.controls for the console output shown earlier.
--module-path="C:\\javafx-sdk-11.0.1\\lib" --add-modules=javafx.swing for
Error occurred during initialization of boot layer java.lang.module.FindException: Module javafx.swing not found
The path to lib folder of javafx is valid. I don't have any idea why is it not working.
