【问题标题】:Cannot build OSGi bundle for a Netbeans RCP application无法为 Netbeans RCP 应用程序构建 OSGi 包
【发布时间】:2015-09-06 17:53:39
【问题描述】:

当我尝试构建 Netbeans RCP 应用程序的 OSGi 包时(例如:提供的示例 Feed 阅读器应用程序),它给出了以下错误:

[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 ...

环境:

  • Debian 杰西
  • JDK1.8.0_45

【问题讨论】:

    标签: javafx-2 osgi netbeans-platform osgi-bundle


    【解决方案1】:

    原来是 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

    【讨论】:

      猜你喜欢
      • 2019-01-14
      • 1970-01-01
      • 2011-08-14
      • 2016-01-26
      • 1970-01-01
      • 2012-09-21
      • 2012-05-06
      • 2017-05-09
      • 2013-03-21
      相关资源
      最近更新 更多