Eclipse启动报错,解决办法

时间:2024-03-02 19:46:05

打开log日志,发现如下错误。原因是修改了计算机用户名导致

!SESSION Thu Aug 30 08:55:41 CST 2018 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2018-08-30 08:55:41.368
!MESSAGE Could not find extension: reference:file:org.eclipse.osgi.compatibility.state_1.1.0.v20170516-1513.jar
!ENTRY org.eclipse.equinox.launcher 4 0 2018-08-30 08:55:41.427
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:650)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
at org.eclipse.equinox.launcher.Main.run(Main.java:1499)

 

解决办法:

和日志同级有一个config.ini文件,将里面的路径中的用户名改为当前用户名即可解决。