RCP編程技巧:Eclipse rcp運行時報錯java.lang.RuntimeException: 問題的解決

“java.lang.RuntimeException: 找不到應用程序標識”問題的解決


今天我在rcp程序裏使用了jet,結果無法運行,一運行就報錯如下:
Framework arguments: -product GeniusPlatform.GeniusPlatform -pdelaunch
Command-line arguments: -product GeniusPlatform.GeniusPlatform -data C:\MyData\Java\runtime-Eclipse應用程序 -dev file:C:/MyData/Java/eclipse3.11/.metadata/.plugins/org.eclipse.pde.core/GenisuplatformRun/dev.properties -pdelaunch -os win32 -ws win32 -arch x86


!ENTRY org.eclipse.osgi 2006-07-05 11:45:33.172
!MESSAGE Bundle initial@reference:file:../MyData/Java/eclipse3.11/GeniusPlatform/ [38] was not resolved.
!SUBENTRY 1 org.eclipse.osgi 2006-07-05 11:45:33.172
!MESSAGE Missing required bundle org.eclipse.emf.codegen_0.0.0.


!ENTRY org.eclipse.core.runtime 2006-07-05 11:45:33.192
!MESSAGE 找不到產品 GeniusPlatform.GeniusPlatform。


!ENTRY org.eclipse.osgi 2006-07-05 11:45:33.222
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: 找不到應用程序標識。
   at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:204)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
   at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
   at org.eclipse.core.launcher.Main.run(Main.java:973)
   at org.eclipse.core.launcher.Main.main(Main.java:948)


!ENTRY org.eclipse.osgi 2006-07-05 11:45:33.242
!MESSAGE Bundle initial@reference:file:../MyData/Java/eclipse3.11/GeniusPlatform/ [38] was not resolved.
!SUBENTRY 1 org.eclipse.osgi 2006-07-05 11:45:33.242
!MESSAGE Missing required bundle org.eclipse.emf.codegen_0.0.0.


搞的我很鬱悶,找來找去不知道什麼原因,我在依賴項裏已經加上了jet所必需的依賴項了啊,搞了好半天,最後是把原來的運行配置刪掉,重新建立了一個運行配置,馬上就能運行了,估計是添加依賴項後運行配置有些地方出錯的緣故吧。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章