New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module not found error #120
Comments
PATH_TO_FX should be pointing to the lib folder. In your case it should be |
I have the same bug When I search for my path in windows explorer it brings me to correct folders that contains javafx.base |
@avacadoadam Below is a batch script with the hardcoded pathing. You can just copy and paste the below in a .bat file in the same directory containing javac --module-path "C:\Program Files\Java\javafx-sdk-13.0.1\lib" --add-modules javafx.controls HelloFX.java
java --module-path "C:\Program Files\Java\javafx-sdk-13.0.1\lib" --add-modules javafx.controls HelloFX |
I had this same problem in Netbeans 11.2, even after having correctly set the VM options for Run in project properties to set the correct modules path. The solution for me was to turn off 'Compile on Save', as mentioned in this reply to this closed issue Might be good to add to the docs? |
I am facing the same issue. I am using IDEA IntelliJ 2019.1.5 on Ubuntu 18.04. When I set PATH_TO_FX correctly to my local JFXdirectory/lib folder, I am facing the error below:
|
Facing the same issue in Windows10, Intellij IDEA version 2020.2 |
I am running JavaFX-15 with JDK-15 on Netbeans 12.0. Go to https://openjfx.io/openjfx-docs/#install-javafx (follow the guide for "JavaFX and NetBeans -> Non-modular from IDE"). In Netbeans, turn off the "compile on save" option:
This got rid of the "Error occurred during initialization of boot layer... java.lang.module.FindException: Module javafx.controls not found". Java FX-15 works beautifully. I hope this helps someone... === To me, it seems like the nb-javac is causing the problem.... |
I've just installed JDK15 and was encountering this issue as well. (macOS 10.14.6) |
Very strange: gilberto.andrade@C430760:~/tmp/JAVAFX/stage$ javac -version
javac 11.0.9
gilberto.andrade@C430760:~/tmp/JAVAFX/stage$ java -version
openjdk version "11.0.9" 2020-10-20
OpenJDK Runtime Environment (build 11.0.9+11-suse-lp152.2.6.2-x8664)
OpenJDK 64-Bit Server VM (build 11.0.9+11-suse-lp152.2.6.2-x8664, mixed mode)
gilberto.andrade@C430760:~/tmp/JAVAFX/stage$
It is compiling ..
But not running ...
|
You should only use the jmod files with jlink. Not with javac (although it happens to work, it isn't supported) or java. You need to use the sdk if you want to locally compile and run. |
No way with sdk ..
|
That should be |
Sorry, it was an oversight on my part. |
I am using IntelliJ 2019.2.3, I set my PATH_TO_FX to C:\Program Files\Java\javafx-sdk-13.0.1, my VM options to --module-path ${PATH_TO_FX} --add-modules javafx.controls,javafx.fxml, my library for javafx 13 has been added under project settings, and I am still getting the error message
"Error occurred during initialization of boot layer
java.lang.module.FindException: Module javafx.base not found"
I'm not sure if I am missing anything. Please help.
The text was updated successfully, but these errors were encountered: