We are using VSCode as our IDE for this application
Video Reference:
Link: https://youtu.be/H67COH9F718?feature=shared
For the setup of application, you will need:
- Java SDK (jdk-21)
- JavaFx SDK
Link: https://download2.gluonhq.com/openjfx/21.0.1/openjfx-21.0.1_windows-x64_bin-sdk.zip - VSCode IDE
Link: https://code.visualstudio.com/ - VSCode Extension - "Extension Pack for Java"
- VSCode Extension - "JavaFx Support"
Steps:
- Install and Setup VSCode IDE
- In VSCode, click on "Extensions", search and install the below extensions
- Extension Pack for Java
- JavaFx Support - Download source code from the link provided: source_code_link
- In VSCode, click on "File" -> "Open Folder", and select the downloaded source code
- In source code, go to .vscode sub directory, and open launch.json file
- In launch.json file, find "vmArgs" under "configurations", change the address path to the address path of your javafx-sdk/lib, following the example below
"vmArgs": "--module-path "C:/address/path/to/your/javafx-sdk/lib" --add-modules javafx.controls,javafx.fxml" - In source code, go to .vscode sub directory, and open settings.json file
- In settings.json, find "java.project.referencedLibraries", change the address path to the address path of your javafx-sdk .jar file, following the example below
"lib/**/*.jar",
"c:\address\path\to\this\javafx-jar-file\javafx.base.jar",
"c:\address\path\to\this\javafx-jar-file\javafx.controls.jar",
"c:\address\path\to\this\javafx-jar-file\javafx.fxml.jar",
"c:\address\path\to\this\javafx-jar-file\javafx.graphics.jar",
"c:\address\path\to\this\javafx-jar-file\javafx.media.jar",
"c:\address\path\to\this\javafx-jar-file\javafx.swing.jar",
"c:\address\path\to\this\javafx-jar-file\javafx.web.jar",
"c:\address\path\to\this\javafx-jar-file\javafx-swt.jar" - In VSCode, click on "Run" -> "Run without debugging" to run the code