gpt4 book ai didi

java - Eclipse RCP找不到扩展定义 "run"

转载 作者:行者123 更新时间:2023-12-01 15:53:21 25 4
gpt4 key购买 nike

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

有人有什么想法吗?谢谢。

最佳答案

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

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

关于java - Eclipse RCP找不到扩展定义 "run",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5562793/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com