Issue
I have a problem, I am currently working on a javafx14 project on eclipse, And the project is almost done.
So I exported the application as a runnable jar. But when I try to run it using console by typing.
java --module-path %PATH_TO_FX% --add-modules javafx.controls,javafx.fxml -jar app.jar
or
java -jar app.jar
or anything really. It gives me the following
Error occurred during initialization of boot layer
java.lang.module.FindException: Module javafx.controls not found
or this :
Error: JavaFX runtime components are missing, and are required to run this application
Please Help. And thanks in advance
Solution
I resolved the problem by making sure to put the jar file in the same place as the library folder.
like this:
-Jar file.
-Folder: lib
So in summary just make sure the jar file is in the same place as your lib.
Answered By - Enamya
Answer Checked By - David Marino (JavaFixing Volunteer)