I've been browsing Stack overflow and googling my way through this for the past 3 hours, and nothing seems to be helping.
My Project Structure settings are as follows:
Project SDK: "11 (java version "11.0.2") Project language level: "11 - Local variable syntax for lambda parameters" - I have also tried the SDK default
Under Modules I have imported all javafx-sdk-11.0.2 jar files
And my VM options:
--module-path C:\Program Files\Java\OpenJDK\javafx-sdk-11.0.2\lib --add-modules=javafx.controls,javafx.fxml Now, whenever I try to run an Application, I get the following error:
Error: Could not find or load main class Files\Java\OpenJDK\javafx-sdk-11.0.2\lib Caused by: java.lang.ClassNotFoundException: Files\Java\OpenJDK\javafx-sdk-11.0.2\lib EDIT:
I added the path into quotation marks, that in turn moved on to the next error: "Error occurred during initialization of boot layer java.lang.module.FindException: Module javafx.base not found"
--module-path "C:\Program Files\Java\OpenJDK\javafx-sdk-11.0.2\lib"--add-moduleslist. The first error was caused by the space in your module-path.