无法为Netbeans RCP应用程序构建OSGi捆绑包 [英] Cannot build OSGi bundle for a Netbeans RCP application
本文介绍了无法为Netbeans RCP应用程序构建OSGi捆绑包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试构建Netbeans RCP应用程序的OSGi捆绑包(例如:提供的示例Feed阅读器应用程序)时,它出现以下错误:
When I try to build an OSGi bundle of a Netbeans RCP application (for example: the provided sample Feed Reader Application), it gives the following error:
[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 Jessie
- JDK1.8.0_45
推荐答案
原来,JavaFX是元凶.
Turns out that JavaFX is the culprit.
您可以按如下所示禁用模块 JavaFX Wrapper :
You can disable module JavaFX Wrapper as indicated below:
Projects/Feed Runner Application
-> Properties
-> Libraries
-> (platform)
-> (JavaFX wrapper) [ ] included (i.e: not included!)
https://netbeans.org/bugzilla/show_bug.cgi?id=250440
这篇关于无法为Netbeans RCP应用程序构建OSGi捆绑包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文