Ort Braude Course - Design Pattern Final Project
Make sure you have installed:
- Click on
File --> Project Structureat the top left. - Go to
Project. - Set:
- Project SDK --> JDK 23
- If not listed:
Add SDK-->JDK--> select JDK 23 install folder.
- If not listed:
- Project language level - keep as SDK default (or choose 23).
- Project SDK --> JDK 23
- Click
Apply.
- Click on
File --> Project Structureat the top left. - Go to
Modules, and select the module. - Set:
Module SDK--> Project SDK.
- Click
Apply.
If no module exists:
- Click
+-->New Module-->Java.- At
ModuleSDK pick: Use Project SDK.- Click
Apply.
- Click on
File --> Project Structureat the top left. - Go to
Modules, and select the module. - Under the module
Dependencies, click:+-->Library-->Java - Select javafx lib folder, usually located at:
C:\javafx-sdk-25.0.2\lib
- Click
Confirm, and make sureScopeis Compile. - Click
Apply.
-
Click on
Run-->Edit Configurationsat the top left. -
Click on
+-->Applicationconfiguration. -
For
Main class, write Main. -
In VM options, add:
--module-path C:\javafx-sdk-25.0.2\lib --add-modules javafx.controls,javafx.fxml
Use quotes if the path contains spaces
Note: If there is no VM options, click on
Modify options-->Add VM options
Now, you can run the application.