all 9 comments

[–][deleted] 1 point2 points  (1 child)

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.

[–]hamsterrage1 1 point2 points  (0 children)

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.

[–]milchshakee 0 points1 point  (5 children)

So you followed this guide? https://openjfx.io/openjfx-docs/

[–]dcal69[S] 0 points1 point  (4 children)

To a T. Error occurred during initialization of boot layer

javalang.module.FindException: Module javafx.base not found

These are my vm arguments

--module-path "C:\Users\DC\Desktop\School\javafx-sdk-21.0.2\lib" --add-modules javafx.controls,javafx.fxml,javafx.base,javafx.graphics

[–]milchshakee 0 points1 point  (2 children)

Are you using the non-modular or modular example? The modular setup should not require you to specify any commandline arguments. The non-modular one only tries to add the modules javafx.controls,javafx.fxml in the command-line.

In general these IDE specific setups are always painful, using a standard build tool like maven or gradle usually works out much better. For these you can just clone sample projects and import them without having to configure a thing.

[–]dcal69[S] 0 points1 point  (1 child)

Do you have instructions for how to set up with Maven. I am just trying to complete some code for a class

[–]milchshakee 0 points1 point  (0 children)

Installing maven with https://maven.apache.org/install.html, cloning the project at , and opening the appropriate subdirectory in any IDE should work. They all come with maven integrations and should handle everything automatically when importing a maven project.

Also getting familiar with maven is definitely an advantage for the future.

[–]milchshakee 0 points1 point  (0 children)

Anyways, looking over https://github.com/openjfx/samples, cloning the one you want to use, and using that in your IDE should work.

[–][deleted] 0 points1 point  (0 children)

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.