Java.exe:VM 初始化期间发生错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/40000065/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-03 04:51:08  来源:igfitidea点击:

Java.exe: Error occurred during initialization of VM

javajava-home

提问by Kees van Voorthuizen

Each time I try to launch java.exe, in this case java.exe -version, I get this output:

每次我尝试启动时java.exe,在这种情况下java.exe -version,我都会得到以下输出:

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

Here is a screenshot of my problem:

这是我的问题的屏幕截图:

enter image description here

在此处输入图片说明

I searched on Google for a solution but nothing works...

我在谷歌上搜索了一个解决方案,但没有任何效果......

采纳答案by Joe Kampf

Make sure your JAVA_HOME environment variable is set to fully qualified path of the directory that contains bin/java.exe

确保您的 JAVA_HOME 环境变量设置为包含 bin/java.exe 的目录的完全限定路径

回答by vinuales

Just Delete java.exe in c:/programdata/oracle/java/javapath_target_xxxxxx/

删除 c:/programdata/oracle/java/javapath_target_xxxxxx/ 中的 java.exe

回答by S.Roshanth

Make sure your installed java bin directory contains rt.jar

确保您安装的 java bin 目录包含 rt.jar