macOS 初次启动tomcat失败,报错:
The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com/ for information on installing Java.
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
已经安装了jdk并且配置了环境变量,可能是jdk装在用户目录下的library而非根目录下的原因?
求帮忙
环境变量没配好
JAVA_HOME, JRE_HOME 这两个环节变量要定义成 java 安装的路径。 然后你重启电脑再试一遍。