eclipse启动失败java.lang.RuntimeException: No application id has been found.

时间:2022-09-14 20:50:58

    系统是XP的时候,安装了MyEclipse(D:\Program Files (x86)\MyEclipse 5.5.1 GA\eclipse)。操作系统升级到Win7后,仅仅是将MyEclipse 5.5.1 GA目录拷贝了,并没有重新安装。

    今天,开打eclipse.exe时报错,查看.log日志,

!SESSION 2014-09-01 08:20:51.015 -----------------------------------------------
eclipse.buildId=M20070212-1330
java.version=1.5.0_04
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 2014-09-01 08:20:52.532
!MESSAGE Product com.genuitec.myeclipse.product.ide could not be found.

!ENTRY org.eclipse.osgi 4 0 2014-09-01 08:20:52.545
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
 at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:56)
 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
 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:585)
 at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
 at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
 at org.eclipse.core.launcher.Main.run(Main.java:977)
 at org.eclipse.core.launcher.Main.main(Main.java:952)

!ENTRY org.eclipse.osgi 2 0 2014-09-01 08:20:52.574
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-09-01 08:20:52.574
!MESSAGE Bundle update@plugins/com.android.ide.eclipse.adt_8.0.0.v201011171904-77661.jar was not resolved.
!SUBENTRY 2 com.android.ide.eclipse.adt 2 0 2014-09-01 08:20:52.575
!MESSAGE Missing required bundle org.eclipse.wst.xml.ui_0.0.0.
!SUBENTRY 2 com.android.ide.eclipse.adt 2 0 2014-09-01 08:20:52.575
!MESSAGE Missing required bundle org.eclipse.wst.sse.ui_0.0.0.
!SUBENTRY 2 com.android.ide.eclipse.adt 2 0 2014-09-01 08:20:52.575
!MESSAGE Missing required bundle org.eclipse.wst.sse.core_0.0.0.
!SUBENTRY 2 com.android.ide.eclipse.adt 2 0 2014-09-01 08:20:52.575
!MESSAGE Missing required bundle org.eclipse.gef_0.0.0.
!SUBENTRY 2 com.android.ide.eclipse.adt 2 0 2014-09-01 08:20:52.575
!MESSAGE Missing required bundle org.eclipse.wst.xml.core_0.0.0.

!ENTRY org.eclipse.osgi 2 0 2014-09-01 08:20:52.576
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-09-01 08:20:52.577
!MESSAGE Bundle update@plugins/com.android.ide.eclipse.adt_8.0.0.v201011171904-77661.jar [4] was not resolved.
!SUBENTRY 2 com.android.ide.eclipse.adt 2 0 2014-09-01 08:20:52.577
!MESSAGE Missing required bundle org.eclipse.gef_0.0.0.
!SUBENTRY 2 com.android.ide.eclipse.adt 2 0 2014-09-01 08:20:52.577
!MESSAGE Missing required bundle org.eclipse.wst.sse.core_0.0.0.
!SUBENTRY 2 com.android.ide.eclipse.adt 2 0 2014-09-01 08:20:52.577
!MESSAGE Missing required bundle org.eclipse.wst.sse.ui_0.0.0.
!SUBENTRY 2 com.android.ide.eclipse.adt 2 0 2014-09-01 08:20:52.577
!MESSAGE Missing required bundle org.eclipse.wst.xml.core_0.0.0.
!SUBENTRY 2 com.android.ide.eclipse.adt 2 0 2014-09-01 08:20:52.577
!MESSAGE Missing required bundle org.eclipse.wst.xml.ui_0.0.0.

解决办法:修改links\com.genuitec.eclipse.MyEclipse.link文件中的path即可,

将path=D:\\Program Files\\MyEclipse 5.5.1 GA\\myeclipse

修改为

path=D:\\Program Files (x86)\\MyEclipse 5.5.1 GA\\myeclipse
即可,目的是找到eclipse所使用到的myeclise目录。