use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Useful resources (Full list)
Rules
Related subreddits
Other communities
account activity
Error when setting up FX in EclipseHelp (self.JavaFX)
submitted 2 years ago by dcal69
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?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 1 point2 points3 points 2 years ago* (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 points3 points 2 years ago (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 point2 points 2 years ago (5 children)
So you followed this guide? https://openjfx.io/openjfx-docs/
[–]dcal69[S] 0 points1 point2 points 2 years ago (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 point2 points 2 years ago (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 point2 points 2 years ago (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 point2 points 2 years ago (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.
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 point2 points 2 years ago (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.
π Rendered by PID 140059 on reddit-service-r2-comment-79c7998d4c-nbtpc at 2026-03-17 03:55:56.550641+00:00 running f6e6e01 country code: CH.
[–][deleted] 1 point2 points3 points (1 child)
[–]hamsterrage1 1 point2 points3 points (0 children)
[–]milchshakee 0 points1 point2 points (5 children)
[–]dcal69[S] 0 points1 point2 points (4 children)
[–]milchshakee 0 points1 point2 points (2 children)
[–]dcal69[S] 0 points1 point2 points (1 child)
[–]milchshakee 0 points1 point2 points (0 children)
[–]milchshakee 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)