eclipse打开异常(No Java virtual machine was found after searching the following locations)

描述:点击桌面的eclipse快捷方式打开eclipse后出现以下提示框

eclipse打开异常(No Java virtual machine was found after searching the following locations)_第1张图片

No Java virtual machine was found after searching the following locations

翻译过来就是:在以下的地址找不到java虚拟机

错误的意思是:在指定的路径D:\eclipse\jre\bin\javaw.exe下面没有找到javaw.exe。原因是Eclipse启动的时候需要javaw.exe来启动,启动Eclipse时,程序会先查询系统变量PATH,若无;则在Eclipse的安装目录(如D:\eclipse\)中查询,若还是没有查询到,则会出现上面的错误提示。

这里采用的解决方法是配置javaw.exe的环境变量

1)找到你所需的jdk的javaw.exe路径


2)系统环境变量PATH中,添加javaw.exe的路径系统环境变量PATH中,添加javaw.exe的路径

eclipse打开异常(No Java virtual machine was found after searching the following locations)_第2张图片

3)这时候能够在eclipse的文件夹目录下点击eclipse.exe来打开eclipse,但想通过建立在桌面上的快捷方式打开还是会出现同样错误

4)要想通过建立在桌面上的快捷方式打开eclipse,直接把jdk的jre文件夹copy到eclipse的目录下

eclipse打开异常(No Java virtual machine was found after searching the following locations)_第3张图片

eclipse打开异常(No Java virtual machine was found after searching the following locations)_第4张图片


问题解决~

你可能感兴趣的:(debug)