使用命令启动nacos报错Please set the JAVA_HOME variable in your environment, We need java(x64)! jdk8 or later is better!。
环境变量,配置都正确的情况下
在startup.cmd文件中新增配置如下
set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_201
set PATH=%JAVA_HOME%\bin;%PATH%
if not exist "%JAVA_HOME%\bin\java.exe" echo Please set the JAVA_HOME variable in your environment, We need java(x64)! jdk8 or later is better! & EXIT /B 1
set "JAVA=%JAVA_HOME%\bin\java.exe"
然后重新点击启动命令即可