Eclipse RCP找不到扩展名定义“run”

时间:2011-04-06 07:25:04

标签: java eclipse eclipse-plugin eclipse-rcp

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

!SESSION 2011-04-06 09:12:58.203 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=it_IT
Framework arguments:  -product myapp.core.product
Command-line arguments:  -product myapp.core.product -data C:\Users\Me\Documents\Workspace/../runtime-myapp.product -dev 

file:C:/Users/Me/Documents/Workspace/.metadata/.plugins/org.eclipse.pde.core/Myapp.product/dev.properties -os win32 -ws win32 -arch x86 -consoleLog

    !ENTRY org.eclipse.osgi 4 0 2011-04-06 09:12:59.662
    !MESSAGE Application error
    !STACK 1
    org.eclipse.core.runtime.CoreException: Executable extension definition for "run" not found.
        at org.eclipse.core.internal.registry.ConfigurationElement.throwException(ConfigurationElement.java:62)
        at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:222)
        at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:191)
        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(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        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)

如果我使用向导导出一切正常,但是当我尝试启动导出的应用程序时,我得到了同样的错误。 在此错误之前,我遇到了依赖项问题but I solve it

任何人都有一些想法?感谢。

3 个答案:

答案 0 :(得分:1)

看起来您已将文本 run 放在需要类名的扩展点属性中。

我建议您打开ConfigurationElement类型并在第222行设置断点并在调试器中运行rcp app。您将能够以这种方式查看更多信息。

答案 1 :(得分:1)

您正在扩展org.eclipse.core.runtime.applications扩展点,但您的扩展程序缺少应用程序元素的run子级。它应包含org.eclipse.equinox.app.IApplication实现的类名。

答案 2 :(得分:-1)

没有。来自EclipseAppHandle.run()的“run”:来自哪里 application = getConfiguration()。createExecutableExtension(“run”);