Eclipse启动错误:A Java Runtime Environment(JRE) or Java Development Kit(JDK) must be available……

2022-11-30 17:21:49 浏览数 (1)

确保Jdk,Jre都安装完成并且环境变量配置无误的情况下,自动Ecplise报错如下:

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:eclipsejrebinjavaw.exe javaw.exe in your current PATH

解决办法:

打开Eclipse根目录eclipse.ini文件,在最前面加上两行:

-vm C:Program FilesJavajdk1.8.0_171binjavaw.exe

(这个是你安装的javaw.exe的绝对路径)

0 人点赞