解决Java Eclipse报错A java runtime Environment(JRE) or java Development问题
安装jdk后,再次启动Eclipse,报错A Java Runtime Environment (JRE) or Java Development Kit(JDK) must be available in order to run Eclipse. No Java virtualmachine was found after searching the following locations: D:\eclipse\jre\bin\javaw.exe javaw.exe in your current PATH解决方法就是添加jdk环境变量,这里以win10环境下为例子:1、右击桌面此电脑-》属性-》高级系统设置2、高级-》环境变量3、添加环境变量-》系统变量新增系统变量JAVA_HOME;;C:\Program Files\Java\jdk1.8.0_291CLASSPATH;;;.;%JAVA_HOME%\lib\dt.jar;