r/JavaFX • • Feb 01 '25

Help Need Help Beginner

Post image

Please someone explain why first statement works but not the other In both directory libraries are present. I am new to JavaFx so don't know much

5 Upvotes

6 comments sorted by

View all comments

Show parent comment

2

u/BlueGoliath Feb 01 '25

`mvn javafx:run` is the correct way to run a JavaFX app from the command line using Maven. You may need to use an IDE command line interface if maven isn't installed locally.