运行Eclipse提示No java virtual machine was found after searching the follwing locations

1 问题描述

打开Eclipse时报错了 说是“…No java virtual machine  was found after searching the follwing locations…”
报错如图

运行Eclipse提示No java virtual machine was found after searching the follwing locations_第1张图片

 

2 解决方案
首先打开Eclipse的安装文件夹 如图

运行Eclipse提示No java virtual machine was found after searching the follwing locations_第2张图片
 报错信息里面说到“…jdk1.8.0_51/bin…”
之前安装过的JDK 说明可能Eclipse的配置文件保留了从前的JDK安装信息
是Eclipse的配置文件需要更改

运行Eclipse提示No java virtual machine was found after searching the follwing locations_第3张图片

因此,JDK的路径需要修改
所以就去Eclipse的安装路径下面找 找到eclipse.ini文件 也就是启动Eclipse的初始化文件
打开并进行编辑

运行Eclipse提示No java virtual machine was found after searching the follwing locations_第4张图片
然后关闭并保存ini文件 重新启动Eclipse

 
 

你可能感兴趣的:(Java)