如何解决Eclipse上error occurred during initialization of vm初始化错误

时间:2024-04-03 13:27:07

解决Eclipse上error occurred during initialization of vm初始化错误

    解决方法:

        右击项目名,找到properties属性:

        1、点击Java Build Path,找到Libraries;

        2、点击Libraries进入;

        3、双击JRE System Library[JavaSE-1.8]如下图所示。

如何解决Eclipse上error occurred during initialization of vm初始化错误

进入如下图所示的界面

    点击如下图1,更换JRE的地址;

    更换地址后选择JRE地址。

如何解决Eclipse上error occurred during initialization of vm初始化错误

点击Installed JREs之后进入下图,点击红箭头指示的地方。

如何解决Eclipse上error occurred during initialization of vm初始化错误



新建一个Standard VM ,选择jre所在的位置。

如何解决Eclipse上error occurred during initialization of vm初始化错误

选择完成之后保存就可以使用了。