+ Most of JDK installations come with additional JavaFX + JAR. Alas the location of the JAR is different on JDK7 and JDK8, + moreover on some operating systems (think of Solaris) the + JAR is not present at all. To hide the differences and allow + smooth consumption of JavaFX APIs NetBeans provide + following conventions. +
+
+ If you want to code against JavaFX APIs, add dependency
+ on org.netbeans.libs.javafx
library. Then you'll
+ be able to compile and run while using the API.
+
+ If you want to depend on presence of JavaFX JAR + inside of JDK installation structure, use: +
+OpenIDE-Module-Needs: org.openide.modules.jre.JavaFX+
+ This token is made available by the module system, if the
+ JavaFX module is present in the JDK. Btw. the
+ org.netbeans.libs.javafx
library has such
+ dependency and as a result, all modules that depend on it
+ will be disabled on Solaris or on OpenJDK (if installed without
+ JavaFX).
+