报错情况如图:

启动eclipse时候报错Error:Could not create the Java Virtual Machine. Error:A Fatal exception has occurred

提示不能成功创建Java虚拟机。

出现上述错误的主要原因是eclipse在启动时无法找到本机安装的jdk(没安装的赶紧百度安装教程去安装),这时我们需要手动引导eclipse去加载JDK路径。

打开eclipse安装路径,找到eclipse.ini文件,注意打开文件后缀名显示,如下图:

启动eclipse时候报错Error:Could not create the Java Virtual Machine. Error:A Fatal exception has occurred

用notepad++等文本编辑工具打开eclipse.ini文件:

启动eclipse时候报错Error:Could not create the Java Virtual Machine. Error:A Fatal exception has occurred

在文件中添加矩形框出来的两行代码,注意路径填写自己本机JDK安装路径下的bin目录,保存,重启eclipse该问题即可解决。

相关文章:

  • 2021-08-14
  • 2021-11-15
  • 2021-06-19
  • 2021-06-24
  • 2022-01-14
  • 2021-07-14
  • 2022-01-26
  • 2021-10-13
猜你喜欢
  • 2021-11-29
  • 2022-12-23
  • 2022-01-26
  • 2021-08-16
  • 2021-11-17
  • 2021-04-13
相关资源
相似解决方案