当前位置:编程学习 > JAVA >>

RCP 导出后exe无法运行

我的RCP程序的product生成之后可以正常运行,但是导出之后,就报错。弹一个对话框,让我看日志,日志内容如下:
!SESSION 2013-02-20 21:24:15.913 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_35
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86_64 -consoleLog

!ENTRY org.eclipse.osgi 2 0 2013-02-20 21:24:17.283
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-02-20 21:24:17.284
!MESSAGE Bundle initial@reference:file:plugins/com.astrium.geo.sf.ui_1.0.0.201302202123.jar/ was not resolved.
!SUBENTRY 2 com.astrium.geo.sf.ui 2 0 2013-02-20 21:24:17.284
!MESSAGE Missing required bundle org.eclipse.nebula.widgets.gallery.source_0.5.3.

!ENTRY org.eclipse.osgi 2 0 2013-02-20 21:24:17.287
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-02-20 21:24:17.287
!MESSAGE Bundle com.astrium.geo.sf.ui_1.0.0.201302202123 [1] was not resolved.
!SUBENTRY 2 com.astrium.geo.sf.ui 2 0 2013-02-20 21:24:17.288
!MESSAGE Missing required bundle org.eclipse.nebula.widgets.gallery.source_0.5.3.
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-02-20 21:24:17.288
!MESSAGE Bundle com.astrium.geo.sf.ui.streetFactory_1.0.0 [2] was not resolved.
!SUBENTRY 2 com.astrium.geo.sf.ui.streetFactory 2 0 2013-02-20 21:24:17.288
!MESSAGE Missing host com.astrium.geo.sf.ui_[1.0.0,1.1.0).

!ENTRY org.eclipse.osgi 4 0 2013-02-20 21:24:17.289
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "com.astrium.geo.sf.ui" could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, org.eclipse.equinox.app.error, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.eclipse.nebula.examples.application.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
at org.eclipse.equinox.launcher.Main.main(Main.java:1384)

我已经试了各种方法,也在eclipse furum发帖了,都没办法解决,希望有高手解答。不胜感激。 RCP --------------------编程问答-------------------- 依赖的jar包不全,所以启动不了。 --------------------编程问答-------------------- product的plugin 列表那里点一下 add required plugins --------------------编程问答--------------------
引用 2 楼 dollyn 的回复:
product的plugin 列表那里点一下 add required plugins

我试过了,你是说的
我点了,导出依然报错。哎! --------------------编程问答--------------------
引用 1 楼 fangmingshijie 的回复:
依赖的jar包不全,所以启动不了。

可是我已经在xml文件里面把binary build全部选上了啊。那我应该怎么加上我缺少的包呢? --------------------编程问答-------------------- 出来依赖的jar包,应用第三方的jar包没有 --------------------编程问答--------------------
引用 5 楼 fangmingshijie 的回复:
出来依赖的jar包,应用第三方的jar包没有

我依赖的jar包,都在这里
可是这里没有啊!
这正常么?
补充:Java ,  Eclipse
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,