I'm trying to set up an IntelliJ application, and can't get something quite right.
Being hit with an error when I try to run it:
"C:\Program Files\Java\jdk-19\bin\java.exe" ...
Error occurred during initialization of boot layer
java.lang.module.FindException: Module javafx.controls not found
Process finished with exit code 1
I uploaded the lib folder for openjfx, as well as the pathway to the lib folder in Project Structure.
I used these three pages in order to help me get to where I currently am:
- Where can I find the "Create project from template" and the "Base package" settings when creating a new project?
- Error: JavaFX runtime components are missing, and are required to run this application with JDK 11
- Eclipse IDE Error: Could not find or load main class javafx.fxml Caused by: java.lang.ClassNotFoundException: javafx.fxml
In the VM Options under Run Configurations, I put the pathway to the lib folder:
--module-path C:\Users\wtfri\Downloads\openjfx-19_windows-x64_bin-sdk.zip\javafx-sdk-19\lib--add-modules=javafx.controls
I feel like I made a mistake somewhere in the snippet of code I put into the VM options, but I'm not experienced enough yet to know what's going on.