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

Опубликовано: 28 Февраль 2021
на канале: 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


Смотрите видео How to Set Up JavaFX to work in Eclipse | Newest 2021 version | JavaFX Beginner Tutorial онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Java Coding Community 28 Февраль 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 115,752 раз и оно понравилось 1.4 тысяч людям.