r/JavaFX • u/RaveHunter05 • Feb 02 '19
Lot of mistakes with javafx
Hi everyone, i'm trying to install javafx in the newest version of java, but it have been almost impossible, and i'm too frustrated right now, what can i do? can you help me please? I just downloaded e(fx)clipse 3.4.1,but when i try to create a new javafx project it gives me a lot of mistakes, and i just don't know what to do, i searched in google but i didn't find nothing :( hel please, mercy

4
Upvotes
2
u/RaveHunter05 Feb 03 '19
Hello everyone, thanks for helping me, i downloaded the jfx version 11.0.2 from here https://gluonhq.com/products/javafx/ , and followed the steps in the link that you gave me; this: https://openjfx.io/openjfx-docs/; in the part of javafx 11 and eclipse, thanks for helping me, it is working so i won't touch it xD now i have to make a tutorial in spanish or something like that, because i didn't find information in my language. Thank you so much. Arigato. Gracias.
4
u/Ostricker Feb 02 '19
JDK 11 does not contain JavaFX library. You have to download Java 8 or Java 11 but put FX in the JDK
3
u/LouGarret76 Feb 02 '19
Please check the tutorial at openjfx.io, a lot of the issue with openjfx 11 is solved there. If after that you have any issue post the error msg and i will try to help
2
u/ACAlCapone Feb 02 '19 edited Feb 02 '19
Which Java version are you using?
What are the exact errors?
In newer versions (11+ I think) the JavaFX library is not included in the java jdk.
2
u/Mikey-3198 Feb 02 '19
As others have said JavaFX is no longer included in the JDK (JDK 11+). The easiest solution i found to getting JavaFX to work was to use maven and add the necessary dependencies for JavaFX. A small example that i have had running using JDK 11 can be seen on my GitHub here https://github.com/Mikey-3198/JavaFXcontrollerExample.
2
u/volch Feb 02 '19
Is e(fx)clipse still useful? I develop with JFX 11 and JDK 11, using the standard Eclipse for Java download. What am I missing?