导出的rcp程序无法运行

logon29 2009-10-30 09:12:15
在eclipse环境中是可以运行的,但导出后不能运行,日志提示有好多包都找不到,这些包都已经在plugin目录下了。
另外rcp导出是否会自动生成startup.jar(startup.jar是否是必须的)?

!SESSION 2009-10-30 08:50:04.671 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.core.runtime 4 0 2009-10-30 08:50:05.234
!MESSAGE
!STACK 0
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Require-Bundle: org.eclipse.equinox.app; bundle-version="[1.0.0,2.0.0)"
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:305)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:350)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1118)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:634)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:282)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:468)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:195)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:297)

!ENTRY org.eclipse.osgi 4 0 2009-10-30 08:50:05.234
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.core.runtime_3.3.100.v20070530.jar/ was not resolved.

!ENTRY org.eclipse.osgi 4 0 2009-10-30 08:50:05.250
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:72)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
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:324)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)

!ENTRY org.eclipse.osgi 2 0 2009-10-30 08:50:05.265
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-10-30 08:50:05.265
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.ui.workbench_3.3.1.M20070921-1200.jar/ was not resolved.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2009-10-30 08:50:05.265
!MESSAGE Missing required bundle org.eclipse.core.databinding_[1.0.0,2.0.0).
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2009-10-30 08:50:05.265
!MESSAGE Missing required bundle org.eclipse.jface.databinding_[1.1.0,2.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-10-30 08:50:05.265
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.core.runtime_3.3.100.v20070530.jar/ was not resolved.
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2009-10-30 08:50:05.265
!MESSAGE Missing required bundle org.eclipse.equinox.app_[1.0.0,2.0.0).

!ENTRY org.eclipse.osgi 2 0 2009-10-30 08:50:05.265
!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 2009-10-30 08:50:05.265
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.core.runtime_3.3.100.v20070530.jar/ [2] was not resolved.
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2009-10-30 08:50:05.265
!MESSAGE Missing required bundle org.eclipse.equinox.app_[1.0.0,2.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-10-30 08:50:05.265
!MESSAGE Bundle initial@reference:file:plugins/com.niis.myprice_1.0.0/ [4] was not resolved.
!SUBENTRY 2 com.niis.myprice 2 0 2009-10-30 08:50:05.265
!MESSAGE Missing required bundle org.eclipse.ui_0.0.0.
!SUBENTRY 2 com.niis.myprice 2 0 2009-10-30 08:50:05.265
!MESSAGE Missing required bundle org.eclipse.core.runtime_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-10-30 08:50:05.265
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.core.expressions_3.3.0.v20070606-0010.jar/ [7] was not resolved.
!SUBENTRY 2 org.eclipse.core.expressions 2 0 2009-10-30 08:50:05.265
!MESSAGE Missing required bundle org.eclipse.core.runtime_[3.1.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-10-30 08:50:05.265
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.help_3.3.1.v20070726_33x.jar/ [13] was not resolved.
!SUBENTRY 2 org.eclipse.help 2 0 2009-10-30 08:50:05.265
!MESSAGE Missing required bundle org.eclipse.core.runtime_[3.1.0,4.0.0).
!SUBENTRY 2 org.eclipse.help 2 0 2009-10-30 08:50:05.265
!MESSAGE Missing required bundle org.eclipse.core.expressions_[3.3.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-10-30 08:50:05.265
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.ui_3.3.1.M20070910-0800b.jar/ [17] was not resolved.
!SUBENTRY 2 org.eclipse.ui 2 0 2009-10-30 08:50:05.265
!MESSAGE Missing required bundle org.eclipse.core.runtime_[3.2.0,4.0.0).
!SUBENTRY 2 org.eclipse.ui 2 0 2009-10-30 08:50:05.265
!MESSAGE Missing required bundle org.eclipse.ui.workbench_[3.3.0,4.0.0).
!SUBENTRY 2 org.eclipse.ui 2 0 2009-10-30 08:50:05.265
!MESSAGE Missing required bundle org.eclipse.core.expressions_[3.3.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-10-30 08:50:05.265
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.ui.workbench_3.3.1.M20070921-1200.jar/ [18] was not resolved.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2009-10-30 08:50:05.265
!MESSAGE Missing required bundle org.eclipse.core.runtime_[3.2.0,4.0.0).
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2009-10-30 08:50:05.265
!MESSAGE Missing required bundle org.eclipse.help_[3.2.0,4.0.0).
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2009-10-30 08:50:05.265
!MESSAGE Missing required bundle org.eclipse.core.expressions_[3.2.0,4.0.0).
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2009-10-30 08:50:05.265
!MESSAGE Missing required bundle org.eclipse.jface.databinding_[1.1.0,2.0.0).
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2009-10-30 08:50:05.265
!MESSAGE Missing required bundle org.eclipse.core.databinding_[1.0.0,2.0.0).

...全文
360 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
myloveyoyo1314 2009-10-30
  • 打赏
  • 举报
回复
检查一下版本
logon29 2009-10-30
  • 打赏
  • 举报
回复
呵呵,不好意思。

原来我在选项目的时候,选错了。。。

重新配置了后,已经不提示找不到包了,是其他的异常。
logon29 2009-10-30
  • 打赏
  • 举报
回复
我是在product的配置界面,像你说的这样操作的。

但是导出后就是提示找不到包,所以才去plugin的依赖那再做配置的,也一样的错误。

以前学习的时候是成功建立过应用,这次感觉好曲折。。。

我的eclipse是3.3.
霜之哀伤 2009-10-30
  • 打赏
  • 举报
回复
另外rcp导出是否会自动生成startup.jar(startup.jar是否是必须的)?

这个和你的版本有关系,貌似3.3以后就没有了。

在你的产品配置里,
先删除插件列表中的所有项。点添加,添加你的插件(项目)。
然后点add required plugins,保存。

导出以前确定,你的导出位置是清空的(删除你原来导出的所有文件)
logon29 2009-10-30
  • 打赏
  • 举报
回复
一个jar包和多个jar包应该是一样的,是否我的配置文件哪里有错呢?
网上说是在plugin.xml的依赖配置中,将jar包添加到“必须的插件”中,但我在这点添加,出来的列表中,好多jar包都找不到,而且添加了org.eclipse.core.runtime.compatibility.auth 和 org.eclipse.core.runtime.compatibility 后,在eclipse中也运行不了。

在“必须的插件”下方还有一个“自动管理依赖性”的配置项,在那里点添加就能找到所需的jar包。

这两个配置项有和区别?
  • 打赏
  • 举报
回复
自己做成一个JAR包

58,454

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧