openjfx / openjfx-docs

Getting started guide for JavaFX 11
BSD 3-Clause "New" or "Revised" License
95 stars 25 forks source link

JavaFX HelloWorld Failed to run #228

Open JavaFXBeginner opened 1 year ago

JavaFXBeginner commented 1 year ago

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

•info on the second error on build-impl: 936 line
atultiwariatul commented 8 months ago

@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.