wiverson / maven-jpackage-template

Sample project illustrating building nice, small cross-platform JavaFX or Swing desktop apps with native installers while still using the standard Maven dependency system.
Apache License 2.0
346 stars 53 forks source link

java: package javafx.application does not exist #78

Closed PerryCameron closed 2 years ago

PerryCameron commented 2 years ago

One thing I have found strange with this setup is the inability to use a run configuration from the IDE. I am sure I am missing something, but I am able to use "mvn javafx:run" in the terminal of intellij and the program will launch. If however, I try to set up a run configuration and run it directly from the IDE I get a bunch of "java: package javafx.application does not exist" style errors. I find this strange since I am using 19.fx-zulu where the packages are included. It is acting like it is looking for modules. Do you have any clues to what may be going on here?