java: package javafx.application does not exist #79
Unanswered
PerryCameron
asked this question in
Q&A
Replies: 1 comment 9 replies
-
Yup. To fix, you will need to turn off download shared indexes in IntelliJ and invalidate caches. Preferences -> Tools -> Public Shared Indexes -> JDKs -> Don't Download tl;dr - the shared index IntelliJ downloads does not include JavaFX. FWIW Once that's all done you should be able to run & debug just by launching the main() method, e.g. BaseApplication.main. You can click the run button in the gutter the first time and then run/debug after that. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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?
Beta Was this translation helpful? Give feedback.
All reactions