Java package does not exist

Answered

I'm new to java and am trying to import libraries (javafx). When I run my code, I have the following error: Error:(3, 26) java: package javafx.application does not exist. I don't understand why I have this as it worked before. Thanks for any help :)

1
3 comments

JavaFX was removed from the JDK in Java 11. You now have to add it to your project as a library/dependency. Check out the Getting Started with JavaFX guide

0

where is the setting  for that in intellij?

0
Avatar
Yaroslav Bedrov

Hello,

Please check "JavaFX and IntelliJ" part of documentation.

0

Please sign in to leave a comment.