簡體   English   中英

Eclipse RCP找不到擴展定義“運行”

[英]Eclipse RCP cannot find extension definition “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)

如果我使用向導導出,一切都很好,但是當我嘗試啟動導出的應用程序時,會遇到相同的錯誤。 在發生此錯誤之前,我遇到了依賴項問題, 但我解決了

有人有想法嗎? 謝謝。

看起來你已經把一個擴展點屬性,其中一個類名,預計中的文本運行

我建議您打開TypeConfigurationElement並在第222行設置一個斷點,然后在調試器中運行rcp應用程序。 您將可以通過這種方式查看更多信息。

您正在擴展org.eclipse.core.runtime.applications擴展點,但擴展名缺少application元素的run子級。 它應該包含org.eclipse.equinox.app.IApplication的實現的類名。

沒有。 來自EclipseAppHandle.run()的“運行”:application = getConfiguration()。createExecutableExtension(“ run”);在哪里?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM