eclipse启动报错问题

我因为之前修改了账户名,即把C:\Users里的用户文件夹名字从中文改成了英文。
结果就出现了以下问题:
在这里插入图片描述
报错的大概意思是:启动程序无法确定组件和库的位置。
说明肯定是配置的问题了。
解决办法:
在eclipse的安装目录下(我当初的安装目录是:C:\Eclipse\eclipse),找到eclipse.ini文件,打开并把用户名修改成现在的用户名就好了。
在这里插入图片描述
在这里插入图片描述
OK!打开桌面的eclipse!
在这里插入图片描述
???
还是有问题。咱们就去报错说的文件看看是什么错误吧。

!SESSION Mon Nov 04 16:40:54 CST 2019 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2019-11-04 16:40:54.844
!MESSAGE Could not find extension: reference:file:org.eclipse.osgi.compatibility.state_1.1.200.v20180827-1536.jar
!ENTRY org.eclipse.equinox.launcher 4 0 2019-11-04 16:40:54.874
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:656)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
at org.eclipse.equinox.launcher.Main.run(Main.java:1501)

这句黄色的MESSAGE肯定就是报错了——还是说找不到某某东西。
还是配置问题。
忽然看到当前目录下还有一个config.ini文件
打开后会发现又有很多用户名路径,不过因为是使用ASCII码(不知道我有没有记错),所以中文都是显示成 \7de 之类的形式。
把几个用户名改成现在的用户名就好了。
再次打开桌面的eclipse!
在这里插入图片描述
还来???

!SESSION 2019-11-04 17:12:40.684 -----------------------------------------------
eclipse.buildId=4.9.0.I20180906-0745
java.version=1.8.0_191
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
!ENTRY org.eclipse.osgi 4 0 2019-11-04 17:12:42.680
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:81)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:391)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:246)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
at org.eclipse.equinox.launcher.Main.run(Main.java:1501)

问题是这次黄色那句——什么 org.eclipse.core.runtime 的 bundle 也还没有修改配置的原因。
但是呢,我在 org.eclipse.core.runtime 的文件夹里并没有发现任何配置文件。
一顿乱找,发现C:\Eclipse\eclipse\configuration\org.eclipse.equinox.simpleconfigurator
这个路径下有一个 bundles.info 文件。
一打开,感觉一切都明了了。(估计所有的bundle配置文件被集成到这个文件里了)
把所有的用户名路径都修改一下,就搞定啦!

  • 5
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 8
    评论
评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值