分别安装好JDK和Eclipse之后,今天启动就显示错误:
A Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java virtual machine was found after searching the following locations:E:\Program Files\java\eclipse\jre\bin\javaw.exe javaw.exe 。(E:\Program Files\java\eclipse是我的eclipse安装路径)
解决方案:
将安装jdk路径下的E:\Program Files\java\JDK\jre文件夹直接拷贝到E:\Program Files\java\eclipse下,重命名为jre,点击eclipse启动就OK了。
为了保险起见,我把JDK下bin文件和jre都拷贝到Eclipse安装路径下了