eclipse 启动问题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 locat

时间:2023-03-09 01:22:22
eclipse 启动问题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 locat

从其他人直接复制的环境导致的问题。

正常双击出现当前异常,以管理员权限启动可以正常启动。

---------------------------
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
---------------------------

打开Eclipse根目录eclipse.ini文件(就在eclipse文件夹,点开直接编辑就可以),在最前面加上两行:
-vm
C:\ProgramFiles\Java\jdk1.8.0_45\bin\javaw.exe(这个是你安装的javaw.exe的绝对路径,就是JDK中javaw.exe的路径,只需复制过来就可以)