JavaFX install & setup (Eclipse) 🌘

preview_player
Показать описание
Setting up JavaFX for Eclipse is a pain in the ass

1. (00:00:35) Download JavaFX SDK
2. (00:01:59) Install JavaFX plugin
3. (00:02:31) Create a new JavaFX project
4. (00:03:47) Create user library
5. (00:04:40) Set user library
6. (00:05:02) Configure build path
7. (00:05:36) Add VM arguments

––––––––––––––––––––––––––––––
Creative Commons — Attribution-ShareAlike 3.0 Unported— CC BY-SA 3.0
––––––––––––––––––––––––––––––

#JavaFX #Eclipse #setup
Рекомендации по теме
Комментарии
Автор

Before you ask, yes I'll be creating a separate video for IntelliJ


1. (00:00:35) Download JavaFX SDK
2. (00:01:59) Install JavaFX plugin
3. (00:02:31) Create a new JavaFX project
4. (00:03:47) Create user library
5. (00:04:40) Set user library
6. (00:05:02) Configure build path
7. (00:05:36) Add VM arguments

Linux/Mac: --module-path --add-modules javafx.controls, javafx.fxml

WIndows: --module-path --add-modules javafx.controls, javafx.fxml

BroCodez
Автор

STEP 6: CONFIGURE BUILD PATH: If you are using the newer versions such as any of the JDK 17 releases, putting the JavaFX and JavaFX SDK in the Classpath and running your project will give a "Module HelloFX not found" Error. In other to correct this error, you should put everything in the Modulepath instead; so the JavaFX, JavaFX SDK, and the JRE System Library should all be in the Modulepath. When you run your HelloFX project now, it should run nicely without that error. And if you implement step 7 correctly and run, a small empty white window should pop up as shown by Bro Code. I hope this helps someone using one of the newer JDK 17 versions.

chrismzone
Автор

After spending one whole morning trying to create a javafx application through several different online sources and getting frustrated, I finally end up in Bro's video and he has been the only one able to help me. Incredible.

mateusmachado
Автор

2024 updates. If yours isn't running still try
1. At step 6 when confiiguring build path add all 3 libraries to the Modulepath(JavaFX, JavaFX SDK, JRE System Library) and nothing on the class path.
2. Delete the module file under the project's main file, you don't need it
3. Under run configurations, at JRE set to alternate JRE and choose the most up to date version you have installed

I hope this helps someone

kenkei.mwaniki
Автор

THIS VIDEO SAVED ME. I WAS STUCK ON INSTALLING JAVAFX FOR SO LONG (I NEED TO FOR A COURSE), AND THIS WAS THE ONLY TUTORIAL THAT ACTUALLY WORKED FOR ME

THANKS 🙏

rahularora
Автор

seriously! the best video tutorial out there explaining how to do this properly, step by I can't give u more than 1 like but i'll send more than 1 prayer your way!

as some others mentioned, with the newer JDK versions (19 in my case) you would have to make a slight change for this to work during step 6:
right click on your project ---> Build Path ---> Configure Build Path ---> (under Library tab) make sure everything is under MODULEPATH. If anything is under "Classpath", simply click on it-->remove Then click on "Modulepath" ---> Add library ---> User Library --->next---> select the library and finish.... then apply & close!

Thank you!

ghateljoon
Автор

Thank you. For November 2021 it is needed to add your user library(or external jars) to the Module path, not the Class path as described in the video for it to work. Adding to class path now will throw error.

tatiana
Автор

Thanks, spent 2 weeks trying to get this to work and you helped get it running in 20 minutes.

roysteven
Автор

FYI for anyone who follows this and still has issues, you might need to roll back the version of Eclipse, JavaFX, or the JDK that you have installed. Seems like I have to roll those back to something a little older than the newest version every time, particularly if said newest version is from the current month or the one prior.

But thank you so much for posting this, because it does work, even when Eclipse doesn't want it to.

lyssabet
Автор

bro code you saved me last year and once again this year <3

hustlelife
Автор

I don't know what I did wrong the previous time, but you really helped me, BRO.

Микита-фь
Автор

I was mad when I came here because of the javaFX Bugs trying to find a solution, but this guy's light jokes made my day xDDD Thanks for the help <3

aimmer
Автор

Helpful video!

I could not open a JavaFX project (2:39) though as it was not showing. I just opened a java project instead and it worked perfectly.

faisalnirjhor
Автор

Finally got it right after trying so many tutorials!!
Thank you so much - Bless up brother!

bulelanimlindelwa
Автор

YOU ARE THE BEST. You saved me so much heartache. Thank

pasmetha
Автор

Just finished your 12 hour Java video and working on creating a media player as my first full project
Need JavaFX for the MP3 files as WAV files only are limiting and was really struggling to get this to work
You saved me yet again
Thanks Bro

kenkei.mwaniki
Автор

This is what I've been waiting for!!!

tomaszkarolak
Автор

your eclipse setup video was the quickest and easiest to follow that i came across🤩

howieg
Автор

Thanks a bunch for all videos
your videos are very useful for every programmers
Hello from Uzbekistan

MuhammadqobilAbduqahhoro-yqvp
Автор

in build path, i only have configure buikd path, i don't have add libraries

chaimabenouguef