我重装系统后,重新规划分区内容,将以前正常安装的Myeclipse6.6从D:\Program Files目录下移到D:\devtools目录下,并把D:\Program Files下的Myeclipse6.6删除,再运行Myeclipse6.6遇到一些问题,并一一解决,现将现象和解决办法总结贡献出来,备大家做个参考
现象一:启动报jrm找不到
观察D:\devtools\MyEclipse的启动文件,原来只是个快捷方式,选中,鼠标右键点属性,弹开属性后,修改目标栏为:"D:\devtools\MyEclipse 6.6\eclipse\eclipse.exe" -vm "d:\devtools\MyEclipse 6.6\jre\bin\javaw.exe",这个-vm后面参数可以根据你的系统环境来设。
现象二:启动仍然报错,按照提示打开一个log文件,查看报错信息如下:
!SESSION 2010-12-08 09:43:55.391 -----------------------------------------------
eclipse.buildId=M20080221-1800
java.version=1.5.0_11
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 -clean
!ENTRY org.eclipse.equinox.app 2010-12-08 09:44:04.130
!MESSAGE Product com.genuitec.myeclipse.product.ide could not be found.
!ENTRY org.eclipse.osgi 4 0 2010-12-08 09:44:04.179
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:236)
at org.eclipse.equinox.internal.app.EclipseAppContainer.start(EclipseAppContainer.java:98)
at org.eclipse.equinox.internal.app.Activator.addingService(Activator.java:112)
at org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(ServiceTracker.java:1064)
at org.osgi.util.tracker.ServiceTracker$Tracked.trackInitialServices(ServiceTracker.java:926)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:330)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:274)
at org.eclipse.equinox.internal.app.Activator.start(Activator.java:54)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
网上查了解决方法有如下几种:
1、安装目录有中文,重新安装不要有中文路径
2、删除D:\devtools\MyEclipse 6.6\eclipse\configuration下的config.ini文件。
我的情况显然不是第一种,按第二种执行了也不对,仍然报错。查看了D:\devtools\MyEclipse 6.6\eclipse\links下的文件,有一个com.genuitec.eclipse.MyEclipse,打开后只有一行内容path=D:/Program Files/MyEclipse 6.6/myeclipse,修改成path=d:/devtools/MyEclipse 6.6/myeclipse后,重启Myeclipse,启动成功
本文转自 cuiyingfeng 51CTO博客,原文链接:http://blog.51cto.com/cuiyingfeng/448398,如需转载请自行联系原作者