This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
At the moment, NetBeans doesn't explicitly support JavaFX libraries (see http://www.netbeans.org/issues/show_bug.cgi?id=166531). This is not a big deal, as it's possible to include a JavaFX project as a library of another JavaFX project (specifying a dummy main for the former) and usually things work; things don't work for the Mobile profile, for a reason described here: http://javafx-jira.kenai.com/browse/JFXC-2770 and here: http://weblogs.java.net/blog/fabriziogiudici/archive/2009/06/javafx_12_still.html Apart reproducing it, I'm not able to say whether it's a JavaFX or a NetBeans bug; JFXC-2770 says it's a NetBeans problem. I think it's a serious issue, since it makes really hard to develop JavaFX Mobile applications of medium complexity.
Current JavaFX must be always compiled from sources. There is no specification of anything that could be called "JavaFX Library". As soon as this situation consolidates - NetBeans will provide appropriate support.
I see from the description that it is possible to add a JavaFX project project as a library to an another project Select Project Name->Libraries, right-click and select Add Project It works if both projects have the standard execution model. I also tried the case when an A project had standard execution model and a B project which included the A project as a library had a mobile emulator model execution. It worked for me. The situation where the A project is a mobile and the B project is non-mobile does not work. Probably all libraries in this case should have standard execution model.