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

发布于 2024-10-31 00:04:35 字数 2458 浏览 0 评论 0原文

我有一个 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)

如果我使用向导导出一切正常,但当我尝试启动导出的应用程序时,我收到相同的错误。 在此错误之前,我遇到了依赖项问题,但我解决了

有人有一些想法吗?谢谢。

I have an RCP application to develop; the code was written a couple of years ago, and I have to finish it. I imported the plugins in Eclipse, I solve all the dependencies, but when I try to launch it I get this error:

!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)

If I export with wizard all go fine, but when I try to launch the exported application I get the same error.
Before this error I had a problem with dependencies, but I solve it.

Anyone have some ideas? Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

何其悲哀 2024-11-07 00:04:35

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

我建议您打开 ConfigurationElement 类型并在第 222 行设置断点,然后在调试器中运行您的 rcp 应用程序。这样您将能够看到更多信息。

It looks like you have placed the text run inside of an extension point attribute where a class name is expected.

I'd recommend that you open the type ConfigurationElement and set a breakpoint on line 222 and run your rcp app in the debugger. You will be able to see more information that way.

浪推晚风 2024-11-07 00:04:35

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

You are extending the org.eclipse.core.runtime.applications extension point but your extension is missing the run child of the application element. It should contain the class name of your implementation of org.eclipse.equinox.app.IApplication.

揽清风入怀 2024-11-07 00:04:35

不。来自 EclipseAppHandle.run() 的“run”:哪里是
应用程序= getConfiguration().createExecutableExtension(“运行”);

no. "run" comming from EclipseAppHandle.run() : where is
application = getConfiguration().createExecutableExtension("run");

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文