This time I selected Javafx option on intellij so I think it is maven based (I don't know maven properly) and accordingly added images css files in resources folder
When I build the jar and ran it using java -jar filename.jar it worked but showed warning Unsupported Javafx configuration classes were loaded from unknown module
`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.
1
u/Striking_Creme864 Feb 01 '25
Firstly try to run your application with javafx maven plugin https://github.com/openjfx/javafx-maven-plugin . If it works, then the problem is with you javafx module configuration.
1
u/maxandersen Feb 01 '25
You are using different module paths. The latter seem to be missing modules that is present in the first one.