openjfx-docs icon indicating copy to clipboard operation
openjfx-docs copied to clipboard

JavaFX HelloWorld Failed to run

Open JavaFXBeginner opened this issue 1 year ago • 1 comments

Hi! I followed the instructions on the JavaFX website (https://openjfx.io/openjfx-docs/#introduction) then I entered my HelloWorld program, and ran into this problem below. Please tell what I did wrong. Thanks run: Error occurred during initialization of boot layer java.lang.module.FindException: Module javafx.controls not found C:\Users\W1\Documents\NetBeansProjects\ChangingTextFonts\nbproject\build-impl.xml:1330: The following error occurred while executing this line: C:\Users\W1\Documents\NetBeansProjects\ChangingTextFonts\nbproject\build-impl.xml:936: Java returned: 1

•info on the the build-impl.xml: 1330 line j2seproject1:java </j2seproject1:java>

•info on the second error on build-impl: 936 line

JavaFXBeginner avatar Mar 03 '23 06:03 JavaFXBeginner

@JavaFXBeginner : Please provide information like if you are trying to run at a command prompt or from IDE? Most probably you are missing --add-modules javafx.controls,javafx.fxml as you VM Argument.

atultiwariatul avatar Oct 31 '23 08:10 atultiwariatul