简介

日历

快速登陆

新发表

新评论

新留言

BLOG信息

链接收藏

RSS


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/d

ev.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所必需的依赖项了啊,搞了好半天,最后是把原来的运行配置删掉,重新建立了一个运行配置,马上就能运行了,估计是添加依赖项后运行配置有些地方出错的缘故吧。


2006/7/7 16:27:00

Posted by guanhui | 阅读全文 | 回复(0) | 引用通告 | 编辑 | 收藏该日志

发表评论:

    昵称:
    密码:
    主页:
    标题: