Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object

Posted Tank的技术博客

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object相关的知识,希望对你有一定的参考价值。

本地原来已经安装了JAVA JDK1.7并配置好了环境变量; 然后又安装了JDK8,想2个版本并存。

然后发现eclipse 打不开,闪退。然后查看环境:

发现


C:\Users\Administrator>java -version
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

于是执行:

C:\Users\Administrator>java -fullversion
java full version "1.8.0_91-b15"

原来版本有点混乱了!

解决方法:

一,C:\Windows\System32 下把java*.exe 重命名

发现还是没有解决

二,C:\ProgramData\Oracle\Java\javapath 下竟然还有链接

一并重命名

 

测试:

C:\Users\Administrator>java -version
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)

 

解决OK!eclipse也能进了!

以上是关于Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object的主要内容,如果未能解决你的问题,请参考以下文章

!MESSAGE Error occurred during status handling

解决ubuntu下error occurred during the signature verification

an error occurred during the file system check错误的解决

TestNG运作报错An interanl error occurred during:"Launching first"

用Eclipse运行Java文件报错Error occurred during initialization of boot layer

Error occurred during initialization of VM java/lang/NoClassDefFoundError