Error occurred during initialization of VM 附oracle官網解決方式

 java 命令

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

我解決的操作步驟

右擊管理員方式 重新安裝JDK軟件

然後重新設置了一遍環境變量 JAVA_HOME CALSSPATH和path這些,就好了

我估計是我電腦沒有執行管理員命令的原因。

 

另外附上FQ的一些截圖和複製過來的文字(自行翻譯吧),希望其他方式可以幫助到你

https://support.oracle.com/knowledge/Middleware/1006790_1.html

 

My Oracle Support Banner

Java[TM]:Error occurred during initialization of VM java.lang.NoClassDefFoundError: java.lang.Object (Doc ID 1006790.1)

Last updated on NOVEMBER 06, 2018

APPLIES TO:

Java SE JDK and JRE - Version 1.3.1 to 8
All Platforms

SYMPTOMS

When trying to run a Java[TM] application, you get the following error message:

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

CHANGES

Actions that are known to trigger this problem:

1. Trying to run a 64-bit JVM[TM] on Solaris (SPARCv9 or x64) when the required 32-bit JVM is not installed(does not apply to JDK 8 and later since starting with JDK 8 there is No 32 bit JVM anymore).

2. Removing the file rt.jar from the JVM installation folder, implicitly or explicitly. Third-party anti-virus software has been known to cause this problem on Microsoft Windows platforms. 

3. Lack of read access rights to the file rt.jar.

4. Using the JVM's -Xbootclasspath: switch to modify the search path of the bootstrap class loader and Not including the file rt.jar on the search path.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章