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所必需的依赖项了啊,搞了好半天,最后是把原来的运行配置删掉,重新建立了一个运行配置,马上就能运行了,估计是添加依赖项后运行配置有些地方出错的缘故吧。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章