新年上班第一天,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:eclipse\jre\bin\jacaw.exe javaw.exe in your current Path。
解决方案:
系统变量里设置下面:
变量名:JAVA_HOME 变量值:C:\Program Files\Java\jdk1.8.0_60【本机JDK目录】
变量名:CLASSPATH 变量值:.;%JAVA_HOME%\lib;【注意前面有个小数点】
变量名:Path 变量值:%JAVA_HOME%\bin;
时间: 2024-09-26 11:39:15