遇到Error: JAVA_HOME not found in your environment. Please set the JAVA_HOME variable in your environmen错误,或者ERROR: JAVA_HOME is set to an invalid directory.JAVA_HOME = F:\Java\jdk1.8;Please set the JAVA_HOME variable in your environment to match thelocation of your Java installation时,其他解决方案不行的时候,可以试试这个:
JAVA_HOME配置的路径后面的分号去掉
我的jdk路径是F:\Java\jdk1.8;
把最后的“;”去掉后