我需要用 nacos 3.1.0 来完成spring cloud 的 yml控制,结果报错了
nacos 运行时候报错"nacos is starting with standalone"
Error: A JNI error has occurred, please check your installation and try again
Exception in thread “main” java.lang.UnsupportedClassVersionError:
org/springframework/boot/loader/launch/PropertiesLauncher has been compiled by a more recent version of
the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0

看起来是java版本的问题
先自己看看自己的java版本对比一下官网需要的java版本,好,版本不适配


换java版本改环境变量

成了


总结,看清楚报错,确定是java版本问题就找找看,先java -version 看看,目前版本是哪个,再确认环境变量里面是不是这个,确认官网是不是这个,然后我找了半天,可恶,记得看官网

741

被折叠的 条评论
为什么被折叠?



