Eclipse出错不断,注册表不能乱改

Eclipse打不开,始终报错,还能不能开心的敲代码了???

首先说下造成我这个愚蠢错误的起源:电脑是win10系统,本来是可以正常使用的。某一天,我正在使用python,打开命令提示符,看见开头是中文(现在成了下面这个样了),出于强迫症。我就上网去找处理方法。在知乎某篇回答,我找到注册表,修改了计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-21-34987087-1338907778-1883452047-1001的中文名。接着重启电脑,结果发现桌面上以前的偏好设置完全不见了,进入命令提示符下,确实变成了英文,但并不是我设置的那个,而是system32.大失所望,于是我又进入注册表把ProfileListPath的中文改回来了(下面还多了个文件)。结果就酿成了现在的错误。

修改的注册表位置:

Eclipse出错不断,注册表不能乱改

修改后运行命令界面变成这样了:

Eclipse出错不断,注册表不能乱改

好了,当我打开Eclipse时,错误接踵而至。

Eclipse出错不断,注册表不能乱改

出现上图错误:An error has occurred.See the log file E:\Eclipse Workspace\.metadata\.log。根据提示我找到Eclipse工作空间的.log文件。

Eclipse出错不断,注册表不能乱改

用记事本打开.log文件如下:

!SESSION 2018-11-02 08:30:30.122 -----------------------------------------------

eclipse.buildId=4.4.2.M20150204-1700

java.version=10.0.1

java.vendor=Oracle Corporation

BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN

Framework arguments:  -product org.eclipse.epp.package.jee.product

Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

!ENTRY org.eclipse.osgi 4 0 2018-11-02 08:30:43.929

!MESSAGE Application error

!STACK 1

java.lang.NoClassDefFoundError: org/w3c/dom/stylesheets/StyleSheet

         at org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngineManager.getCSSSWTEngine(ThemeEngineManager.java:41)

         at org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngineManager.getEngineForDisplay(ThemeEngineManager.java:30)

         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createThemeEngine(PartRenderingEngine.java:1428)

         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.initializeStyling(PartRenderingEngine.java:1281)

         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1036)

         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

         at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)

         at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)

         at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)

         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)

         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)

         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)

         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)

         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)

         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)

         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)

         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

         at java.base/java.lang.reflect.Method.invoke(Unknown Source)

         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)

         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)

         at org.eclipse.equinox.launcher.Main.run(Main.java:1465)

         at org.eclipse.equinox.launcher.Main.main(Main.java:1438)

Caused by: java.lang.ClassNotFoundException: org.w3c.dom.stylesheets.StyleSheet cannot be found by org.eclipse.e4.ui.css.core_0.10.100.v20140424-2042

         at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)

         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)

         at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)

         at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)

         at java.base/java.lang.ClassLoader.loadClass(Unknown Source)

         ... 26 more

接下来,我在Eclipse官网论坛里看到一个留言:

Trimmed javax.xml MANIFEST.MF

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zzyxws.html