Steps of Downloading and Installing JavaFX on Eclipse
(*) Downloading JavaFX Files:
1.1 Go to: [Link]
1.2 Go to Downloads and select your operating System
1.3 Download the SDK to “C:\xxxx” folder
1.4 Extract the downloaded files
** Eclipse:
(1) Adding JavaFX to Eclipse IDE:
2.1 Window Preferences Java Build Path User Libraries New
2.2 Type any name in: User Library name (e.g. JavaFX)
2.3 Click OK
2.4 Then select the JavaFX you created in step 2.2
2.5 Then click on Add External JARs
2.6 Select the location where you saved JavaFX files in step 1.3
2.7 Select all files in lib folder
2.8 Click Apply and Close
(2) Adding JavaFX to your Java Project:
3.1 Right click (On your project) Build Path Configure Build Path
3.2 Go to Library tab
3.3 Select ClassPath
3.4 Click on Add Library
3.5 Select User Library Next
3.6 Then select the JavaFX you created in (step 2.2) Click Finish
3.7 Click Apply and Close
(3) JavaFX VM arguments:
4.1 Right click (On your project) Run Configurations Select your class name
4.2 Select from Java Application Main
4.3 Select Arguments tabs
4.4 In VM arguments, add the following (change your-path):
--module-path "your-path\lib" --add-modules [Link],[Link]
e.g.
--module-path "C:\javafx-sdk-20.0.1\lib" --add-modules [Link],[Link]
Video:
[Link]
Dr. Esra Alzaghoul