r/javahelp • u/Zeyode • May 02 '19
Eclipse can't find javafx
The import javafx cannot be resolved
AAAAAAAAAAAA wat do?
2
u/PhillyD177 May 02 '19
I believe after JDK 8, but maybe its jdk 10, oracle made fx a separate package. I ran into this problem using Java 11. Search for the javafx download, it's a separate download than the normal jdk. you'll then have to add it as a global or project library in eclipse.
3
May 02 '19
For me, it was the excuse to start learning Maven. It was a good kick in the pants for that.
0
May 02 '19
[deleted]
2
u/PhillyD177 May 02 '19
I love Maven, I would use it everyday if I could! unfortunately all my programming labs I have to do at university require JavaFX but don't allow me to use any dependency managers or build tools
1
u/Kallory May 03 '19
I am also in school and still learning more about the various tools out there, and up until now my impression of JavaFX has been that it is the creme de la creme of Java GUI libraries.
I feel that this is a misconception on my part so if you don't mind I have some questions - What makes Maven so great? What's the best way to go about learning how to use it? Thanks for your time.
1
u/PhillyD177 May 03 '19
Go to the docs, install maven or use built in maven in IntelliJ, I forget the actually command but something like “./mvnw install javafx” in the terminal, all set to go. Maven is there to make your life easier, you don’t learn maven you let her learn you
1
u/AceroAD May 02 '19
I recommend u changing to netbeans, ive been using eclipse for lst year and i think now that il using netbeans everything is easier.
1
6
u/[deleted] May 02 '19
Well if you are using Java 11 it's because JavaFX is no longer included in Java.
I recommend starting here: https://openjfx.io/openjfx-docs/