Eclipse RCP 找不到扩展定义“run”
我有一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看起来您已将文本 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.
您正在扩展
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 therun
child of the application element. It should contain the class name of your implementation oforg.eclipse.equinox.app.IApplication
.不。来自 EclipseAppHandle.run() 的“run”:哪里是
应用程序= getConfiguration().createExecutableExtension(“运行”);
no. "run" comming from EclipseAppHandle.run() : where is
application = getConfiguration().createExecutableExtension("run");