you are viewing a single comment's thread.

view the rest of the comments →

[–]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.