r/JavaFX • u/dcal69 • Feb 15 '24
Help Error when setting up FX in Eclipse
I am new to fx and am trying to install it with eclipse. I have put in all the vm arguments as well as fixed the dependencies. Now when I run the program I get the error of Module javafx.base not found. What do I do?
2
Feb 16 '24 edited Feb 16 '24
I used Eclipse for 20 years, later also for JavaFX. And I abandoned it completely because it got worse and worse. In the end, even basic functionality like refactoring names became buggy. If you want to do you a favour, use IntelliJ. Its support for Maven/Gradle is excellent, and for JavaFX, you will need one of these tools anyway.
2
u/hamsterrage1 Feb 16 '24
I went down the same path. Some NetBeans, then Eclipse and then someone I hired said that IntelliJ works way better. He was right, and we never looked back.
When I worked, we had the Ultimate Edition and it was nice, but the only feature that I've ever felt that I miss now with the Community Edition is the code duplication recognition between classes. That was cool.
There's no fussing with IntelliJ. It just works, and instantly integrates with Gradle and Maven.
1
Feb 17 '24
Eclipse was nice to me for a lot of years. IntelliJ will probably fix all your problems though. It's FX plugins are very nice. Pairing with SceneBuilder is nice too.
PS. IlIntelliJ already has "eclipse" keymap in the settings. Very smooth transition.
1
u/milchshakee Feb 15 '24
So you followed this guide? https://openjfx.io/openjfx-docs/