Nacos 启动报错: Please set the JAVA_HOME variable in your environment, We need java(x64)! jdk8 or later

(1)原因一:jdk版本太低 

 解决方案:升级jdk。

(2)原因二:starup.cmd中JAVA_HOME配置错误(主要原因)

解决方案:(1)在starup.cmd 添加图片中用长方形包裹起来的代码,引号中为自己jdk的路径。(亲测有效)

Nacos 启动报错: Please set the JAVA_HOME variable in your environment, We need java(x64)! jdk8 or later_第1张图片

注意: starup.cmd为红色箭头箭头标注的

Nacos 启动报错: Please set the JAVA_HOME variable in your environment, We need java(x64)! jdk8 or later_第2张图片

配置完成后启动成功

Nacos 启动报错: Please set the JAVA_HOME variable in your environment, We need java(x64)! jdk8 or later_第3张图片

你可能感兴趣的:(java,开发语言)