RCP编程技巧:Eclipse rcp应用发布后运行时报错java.lang.RuntimeException: 问题的解决
【原创】
今天,我重新发布我的Rcp应用后,不能运行,打开日志文件,报错如下:
!SESSION 2006-04-30 10:04:57.584 ----------------------------------------------- eclipse.buildId=unknown java.version=1.4.2_09 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN Command-line arguments: -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.core.runtime 2006-04-30 10:05:01.339 !MESSAGE 找不到产品 GeniusPlatform.GeniusPlatform。
!ENTRY org.eclipse.osgi 2006-04-30 10:05:01.389 !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-04-30 10:05:01.399 !MESSAGE Bundle initial@reference:file:plugins/GeniusPlatform_1.0.0/ [1] was not resolved. !SUBENTRY 1 org.eclipse.osgi 2006-04-30 10:05:01.399 !MESSAGE Missing required bundle org.eclipse.ui.console_0.0.0.
我倒,我上一个版本导出后,运行还好好的,这怎么就不能用了? 折腾了一上午,总算搞定了,原来是这样的,我在程序了添加了对Eclipse控制台的调用,相应的eclipse依赖项没有添加,通常是org.eclipse.swt,org.eclipse.swt.win32.win32.x86,org.eclipse.text比较常见,会引起以上的报错,解决的办法其实很简单,删掉原来的xxx.product文件,xxx是指你的.product文件的名字,重新添加一个,添加时选择使用现有产品,就可以自动将所需的依赖项加入到文件中了。 看来eclipse还得好好学啊! 我使用的版本是Eclipse3.1.1 2006/4/30 14:53:00
Posted by guanhui | 阅读全文 | 回复(0) | 引用通告 | 编辑 | 收藏该日志
|