openjfx / samples

JavaFX samples to run with different options and build tools
BSD 3-Clause "New" or "Revised" License
578 stars 1.52k forks source link

Error occurred during initialization of boot layer java.lang.module.FindException: Module javafx.controls not found - Error on NetBeans 12.6 #65

Open Rango28 opened 2 years ago

Rango28 commented 2 years ago

Hi,

I am a beginner at JavaFX. I want to display a stage but, although I follow the instructed steps to get the exact path (except for storing it in a C: folder which I can't to do since I have Mac), I cannot display it as it shows me: Error occurred during initialization of boot layer java.lang.module.FindException: Module javafx.controls not found. I saw a previous issue on the same error on NetBeans which said that I have to add the FX library in Modulepath under Run (Properties -> Libraries -> Run -> Modulepath) and, from what I understood delete the part of the path which says: --module-path, I still have no success in displaying the stage. When I follow the latter suggestion I get this error: `Error: Could not find or load main class Documents\FX17\lib'

I also made sure that I unchecked the "compile on save" option. I would highly appreciate other suggestions or corrections to my comprehension of the topic.

Screen Shot 2022-01-24 at 12 00 08 AM Screen Shot 2022-01-23 at 11 59 43 PM