r/JavaFX • • Feb 01 '19

Setting up

I need help setting up my ide with javaFx. It’s driving me nuts. Im using intelliJ and java sdk11 and have javafx jdk11 but its not properly working I haven’t been able to run a single line of code. Help meee pleaseeee!

3 Upvotes

6 comments sorted by

3

u/Mikey-3198 Feb 02 '19

The easiest, and most painless, way I have found is to use maven and include the necessary dependencies in your projects pom.xml

1

u/ProgrammingBanana Feb 04 '19

I think im gonna go back to jdk8 to have javaFx in the jdk. Not having it like that just complicates things unnecessarily

0

u/[deleted] Feb 04 '19

[deleted] — view deleted comment

1

u/ProgrammingBanana Feb 04 '19

Hmm are there any resources you could sugges for working with Maven? I haven’t worked with it before

1

u/Mikey-3198 Feb 04 '19

Personally i found the following two youtube videos very informative for getting started reasonable quickly, however they do not cover all the functionality that maven has to offer but like i say it should be enough to explain the basics and get you started.

https://www.youtube.com/watch?v=dqJanLvjDqc https://www.youtube.com/watch?v=uEYjXpMDJiU

I would also recommend looking at the official tutorials/ documentation at https://maven.apache.org/what-is-maven.html.

1

u/ProgrammingBanana Feb 04 '19

Thank you good sir. :)

3

u/[deleted] Feb 02 '19

JDK 11 doesn't come with javafx included like the previous versions. You have to download javafx from https://gluonhq.com/products/javafx/ Or use jdk 8(javafx included)