2015-06-21 60 views
0

當我嘗試建立一個NetBeans RCP應用程序的OSGi包(例如:提供的示例Feed閱讀器應用程序),它提供了以下錯誤:不能建立OSGi包爲NetBeans RCP應用

[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

回答

0

打開OU牛逼的是JavaFX是罪魁禍首。

您可以禁用模塊JavaFX的包裝如下所示:

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

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

+0

你可能想紀念這個答案是正確的。 – AlBlue