我正面临捆绑未解决的错误,最终导致 java.lang.RuntimeException:在升级到Eclipse 4.2.1后,无法在注册表中找到应用程序“com.xyz.application”。 。当我在Eclipse外部运行我的应用程序并且应用程序不会启动时,我遇到了这些问题,出现了启动画面,我看到了一条消息来检查日志。奇怪的是,虽然我的应用程序的插件目录中找不到丢失的jar,但我有检查了Eclipse中的依赖项选项卡,并再次添加了记录为未解析但没有运气的捆绑包,我已经检查了我的MANIFEST文件,但是我看到的是正确的 - 在我使用的每个捆绑包的清单中是捆绑版本是强制性的吗?我看到一些包没有设置该属性。
还有一件事需要注意,在我以前的Eclipse 3.7.2中,在启动后构建应用程序在配置文件夹中创建了许多文件夹,我在4.2.1中看到了除org.eclipse.ui.intro之外的所有文件夹.universal,我看到在4.2.1的pde构建期间,我看到蚂蚁尝试 两次 来解压缩org.eclipse.ui.intro.universal.nl1和org .eclipse.ui.intro.universal.nl2 ..我的nestedJars目录对于这两个bunldes只有nl1和nl2个jar,但是org.eclipse.ui.intro.universal.nl1.jar文件除了nl之外还有很多文件jar - 我认为nl1和nl2 jar也应该从nestedJars文件夹中移动,因为我看到nestedJars下的所有其他bundle文件夹中都没有.jar,而实际上只有nl1.jar和org.eclipse的nl2.jar。 ui.intro.universal.nl1和org.eclipse.ui.intro.universal.nl2保留在嵌套的jar中。那么这有点腐败,他们是蚂蚁试图解压两次?或者说它不能将罐子从nestedJars中移出来?
Ant尝试两次在我的pde无头构建期间解压缩org.eclipse.ui.intro.universal.nl1: [mkdir]创建目录:C:\ vobs \ chechand_CM_cm521 \ vobs \ build \ AppCE \ nestedJars \ org.eclipse.ui.intro.universal.nl1_3.2.600.v201209282147 [解压]扩展:C:\ Users \ Administrator \ chechand_Common_3PT_3 \ vobs \ fnet_3pt \ Eclipse \ 4.2.1 \ eclipse \ plugins \ org.eclipse.ui.intro.universal.nl1_3.2.600.v201209282147.jar进入C:\ vobs \ chechand_CM_cm521 \的VOB \编译\ AppCE \ nestedJars \ org.eclipse.ui.intro.universal.nl1_3.2.600.v201209282147 [unzip]扩展:C:\ Users \ Administrator \ chechand_Common_3PT_3 \ vobs \ fnet_3pt \ Eclipse \ 4.2.1 \ eclipse \ plugins \ org.eclipse.ui.intro.universal.nl1_3.2.600.v201209282147.jar into
Also, here is the detailed error stack I get when I actually run the standalone application
outside Eclipse IDE:
!ENTRY org.eclipse.osgi 2 0 2014-05-11 05:37:42.071
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-05-11 05:37:42.071
!MESSAGE Bundle update@plugins/org.eclipse.ui.workbench_3.103.1.v20120906-120042.jar was not resolved.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.071
!MESSAGE Missing imported package org.eclipse.emf.ecore.util_0.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.071
!MESSAGE Missing required bundle org.eclipse.e4.ui.css.swt.theme_0.9.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing imported package org.eclipse.emf.ecore_0.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing imported package org.w3c.dom.css_2.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing imported package org.eclipse.e4.ui.internal.workbench.renderers.swt_0.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing required bundle org.eclipse.e4.ui.workbench3_0.12.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing required bundle org.eclipse.e4.ui.bindings_0.9.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing required bundle org.eclipse.e4.ui.workbench.swt_0.9.1.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing required bundle org.eclipse.e4.core.di_1.1.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing imported package org.eclipse.e4.ui.internal.workbench.swt_0.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing imported package org.eclipse.e4.core.commands_0.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing required bundle org.eclipse.e4.ui.model.workbench_0.9.1.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing required bundle org.eclipse.e4.ui.css.core_0.9.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing imported package javax.inject_1.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing required bundle org.eclipse.e4.core.services_1.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing required bundle org.eclipse.e4.ui.css.swt_0.9.1.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing imported package javax.annotation_1.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing required bundle org.eclipse.e4.core.contexts_1.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing imported package org.eclipse.e4.core.commands.internal_0.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing imported package org.eclipse.e4.ui.internal.workbench_0.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing imported package org.eclipse.emf.common.util_0.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.073
!MESSAGE Missing imported package org.eclipse.e4.ui.services_0.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.073
!MESSAGE Missing imported package org.eclipse.e4.ui.workbench.modeling_0.0.0.
以下是我的.product文件的内容:
<?xml version="1.0" encoding="UTF-8"?>
<?pde version="3.5"?>
<product name="%Product.name" uid="CE debug" id="com.ibm.ecm.configmgr.app.ce.product" application="com.ibm.ecm.configmgr.app.ce.application" version="%Product.version" useFeatures="true" includeLaunchers="true">
<aboutInfo>
<image path="/com.ibm.ecm.configmgr.ui/icons/app_about.gif"/>
<text>
%About.text
</text>
</aboutInfo>
<configIni use="default">
<linux>/com.ibm.ecm.configmgr.app.ce/config/config.ini</linux>
<macosx>/com.ibm.ecm.configmgr.app.ce/config/config.ini</macosx>
<solaris>/com.ibm.ecm.configmgr.app.ce/config/config.ini</solaris>
</configIni>
<launcherArgs>
<vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
</launcherArgs>
<windowImages i16="/com.ibm.ecm.configmgr.ui/icons/app_16.gif" i32="/com.ibm.ecm.configmgr.ui/icons/app_32.gif"/>
<splash
startupProgressRect="6,42,445,15"
startupMessageRect="9,21,445,20"
startupForegroundColor="000000" />
<launcher name="configmgr">
<solaris/>
<win useIco="true">
<ico path="/com.ibm.ecm.configmgr.ui/icons/config_mgmnt_multires.ico"/>
<bmp/>
</win>
</launcher>
<vm>
</vm>
<plugins>
</plugins>
<features>
<feature id="com.ibm.ecm.configmgr.app.ce.feature" version="5.2.0.qualifier"/>
<feature id="org.eclipse.emf.ecore" version="2.8.1.v20120911-0500"/>
<feature id="org.eclipse.emf.ecore.nls1" version="2.8.1.v201209282147"/>
<feature id="org.eclipse.emf.ecore.nls2" version="2.8.1.v201209282147"/>
<feature id="org.eclipse.emf.common" version="2.8.0.v20120911-0500"/>
</features>
</product>
我很感激你们的任何帮助......