Skip to content

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

@Rango28

Description

@Rango28

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions