I am using IntelliJ Community Edition (Version 16) to develop a JavaFX project, and I am seeing some strange compilation errors. According to the compiler, there are a number of JavaFX components that it cannot find.
Upon checking out the mssing references, I discovered that they are all components that are in the package javafx.scene.control. It appears that these particular controls are the relatively new Dialog and Alert boxes that are in the latest JavaFX version.
What is strange about this is that I checked the version of the JavaFX library I am compiling with. The controls in javafx.scene.control are part of the classpath and are supposed to be included in the compilation. For some reason, unfortunately, they are not being included.
Because I use multiple IDEs, I created an Eclipse version of my project and compiled it usimg Eclipse. I had no compilation problems at all. Yet for some reason, the latest IntelliJ cannot find that specific package and fails to compile even though I am using the same IDE, the same JVM, and the same version of JavaFX!
Has anyone seen this problem? Does anyone have some idea what is causing this behavior? Most importantly: can anyone give some idea how to fix this problem?
Someone please advise.