openjfx / openjfx-docs

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

javac command fails to find javafx.controls with openjfx 18.0.2 #226

Open ml8585 opened 1 year ago

ml8585 commented 1 year ago

javac --module-path "C:\Program Files\Java\javafx-sdk-18.0.2\lib" --add-modules javafx.controls App.java error: module not found: javafx.controls 1 error

KineticJetIce245 commented 1 year ago

Try putting everything on one drive other than C. I had my codes in D drive and JavaFX in C, the codes never launched successfully. It didn't work even when I put the codes in the JavaFX folder. However, once I transferred JavaFX files to D drive, it worked.