Hybrid crypto system Basic Security Hogeschool PXL 2018-2019
Before we can use JavaFX in IntelliJ IDEA we need to do some simple preparations.
- To start off we need JavaFX SDK 12 which can be downloaded here https://gluonhq.com/products/javafx/
Place this SDK in a location eg. C:\Program Files\Java
- After this we go to File -> Project Structure -> Project and set the project SDK to 12. We also set the language level to 12.
- Then we add a global variable that can be used in future projects. Go to File -> Settings -> Appearance & Behavior -> Path Variables and define the name of the variable as PATH_TO_FX and browse to the lib folder of the JAVAFX SDK to set its value and click apply.
- Then we go to Run -> Edit Configurations... and add these VM options:
--module-path ${PATH_TO_FX} --add-modules javafx.controls,javafx.fxml
- Now the project should run fine by clicking on Run.
If there are any further problems consult https://openjfx.io/openjfx-docs/#maven