无法为 Netbeans RCP 应用程序构建 OSGi 包

Cannot build OSGi bundle for a Netbeans RCP application

当我尝试构建 Netbeans RCP 应用程序的 OSGi 包时(例如:提供的示例 Feed Reader 应用程序),出现以下错误:

[error] Exception in thread "main" /opt/developer/netbeans-8.0/harness/suite.xml:545: The following error occurred while executing this line:
[error] /opt/developer/netbeans-8.0/harness/osgi.xml:63: Could not prescan /opt/developer/netbeans-8.0/platform/modules/org-netbeans-libs-javafx.jar:
java.io.IOException: Unrecognized constant pool tag 18 at index 18; running UTF-8 strings: blah blah blah ...

环境:

原来 JavaFX 是罪魁祸首。

您可以禁用模块 JavaFX Wrapper,如下所示:

Projects/Feed Runner Application
  -> Properties
    -> Libraries
      -> (platform)
        -> (JavaFX wrapper)   [ ] included  (i.e: not included!)

https://netbeans.org/bugzilla/show_bug.cgi?id=250440