【问题标题】:Eclipse RCP cannot find EclipseStarterEclipse RCP 找不到 EclipseStarter
【发布时间】:2011-07-28 23:55:35
【问题描述】:

我有一个 RCP 应用程序要开发;代码是几年前写的,我必须完成它。我在 Eclipse 中导入了插件,我解决了所有依赖项,但是当我尝试启动它时,我得到了这个错误:

!SESSION Tue Mar 29 10:13:24 CEST 2011 
-----------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2011-03-29 10:13:24.326
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: 

org.eclipse.core.runtime.adaptor.EclipseStarter
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:617)
    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 zip(删除所有并重新解压缩),但仍然无法正常工作。我尝试使用-clean 选项启动应用程序以重建缓存,但它仍然无法正常工作。但是,如果我使用 hello-feature 和 hello-product 创建一些虚拟的 hello-plugin,一切正常。有人有一些提示可以解决这个问题吗?谢谢。

【问题讨论】:

  • 嘿。我有一个 RCP 应用程序要开发,代码是几年前编写的,我必须修复它。依赖项不会为我解决;今天一定已经下载了 50 个 jar 文件,最后一个是 eclipse “找不到”,虽然我的眼睛告诉我类文件在那里......我会仔细看这个问题:P
  • 我无法发布代码,因为这是一个 100 Mb 的项目,分为四个插件和一个功能。我不知道这个问题是由于 Eclipse 配置错误还是开发人员的错误,我只是为遇到相同问题并已解决的人回答。
  • 好的问题解决了,我只需将选项The product configuration us based onfeatures更改为plug-ins,并使用按钮添加所有依赖项Add Required Plug-ins.

标签: java eclipse eclipse-plugin eclipse-rcp


【解决方案1】:

好的,问题解决了,我只需将选项 The product configuration is based onfeatures 更改为 plug-ins 并使用按钮 Add Required Plug-ins 添加所有依赖项。我不知道这是否是正确的方法,它只是工作。

【讨论】:

  • Add Required Plug-ins 在我的情况下是灰色的。
  • @Val:添加至少一个插件,然后你可以添加它需要的:什么都不需要。如果您不知道,请在 MANIFEST 中检查您的依赖项。
  • 这与一步一步的指导相去甚远,也许您可​​以详细说明一下?
【解决方案2】:

我遇到了完全相同的问题。

我的操作系统是 windows 7。我以管理员身份打开了 Eclipse(在我的情况下是 RAD)。打开没有任何问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-12-22
    • 1970-01-01
    • 1970-01-01
    • 2012-11-14
    相关资源
    最近更新 更多