How to Set Up JavaFX to work in Eclipse | Newest 2021 version | JavaFX Beginner Tutorial

Published: 28 February 2021
on channel: Java Coding Community
115,752
1.4k

Setting up JavaFX so it works in Eclipse | JavaFX Eclipse Tutorial
How to set up JavaFX in Eclipse - Beginner JavaFX Tutorial

Today I am going to show you how to set up JavaFX in Eclipse. We will be using newest JavaFX and Eclipse version, but the process is similar on all versions so don’t be afraid.
So the first thing we are going to do is install eclipse plugins for JavaFX called e(fx)clipse or efxclipse.

Help -- Eclipse MarketPlace -- and search e(fx)clipse and click Install.
Now, we have our eclipse set up and the plugins we need.
And now we have a new option in Eclipse -- File -- New -- Other -- JavaFX project.

Open this page: https://gluonhq.com/products/javafx/
Find the latest version and click download, once it has downloaded you want to extract it to a folder, it can be any folder, and remember its location.

Next thing we’ll be doing is creating an user library.
Window -- Preferences -- User Libraries -- New -- Call it JavaFX

Next, we need to set up the run configuration by adding:
--module-path "YOUR\PATH\lib" --add-modules javafx.controls,javafx.fxml


TIMESTAMPS:
0:00 - E(fx)CLIPSE Plugin Installation
1:05 - Creating a new JavaFX Project
2:05 - Downloading and cofiguring JavaFX
3:08 - Creating User Library
4:12 - Adding JavaFX to Eclipse
4:42 - Configuring Build Path and Arguments
5:54 - Running the program
6:17 - Outro

Eclipse: https://www.eclipse.org/downloads/pac...
JavaFX: https://gluonhq.com/products/javafx/
Arguments: --module-path "your-path\lib"
--add-modules javafx.controls,javafx.fxml


Watch video How to Set Up JavaFX to work in Eclipse | Newest 2021 version | JavaFX Beginner Tutorial online without registration, duration hours minute second in high quality. This video was added by user Java Coding Community 28 February 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 115,752 once and liked it 1.4 thousand people.