" 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: C:\Program Files\eclipse\jre\bin\javaw.exe javaw.exe in your current PATH "
您需要安装 Java JDK:http ://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
然后编辑您的路径位置:
右键单击computer
-> properties
-> advanced system settings
-> advanced
-> environment variables
:
添加C:\Program Files\Java\<JDK version>\bin
到您的 PATH 变量。
也添加JAVA_HOME
为系统变量。我有我的JAVA_HOME
设置C:\Program Files\Java\jdk1.7.0_03
。
完成后,开始cmd
,输入java
,然后回车。如果您收到无法找到的错误,则说明 java 未正确安装。