Unable to find any JVMs matching version "(null)".
No Java runtime present, try --request to install.
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
在安装Tomcat的时候遇到这个问题,那我们下面就来解决一下吧。

第一步:进入Oracle官网进行JDK的下载
注意点:需要点击Accept License Agreement,再选择macOS右侧的.dmg文件进行下载
mac JDK9的安装与环境配置以及Tomcat安装错误问题的解决
第二步:将下载完的文件,复制到Java环境文件夹中,方便管理。
mac JDK9的安装与环境配置以及Tomcat安装错误问题的解决
双击jdk的dmg文件:
mac JDK9的安装与环境配置以及Tomcat安装错误问题的解决
进行双击操作。点击继续:
mac JDK9的安装与环境配置以及Tomcat安装错误问题的解决
继续之后,有一个“安装”按钮,点击按钮,需要输入密码:
mac JDK9的安装与环境配置以及Tomcat安装错误问题的解决
这样就安装成功啦。
那我们下面Tomcat的安装,就到Tomcat的文章中进行下一步吧!
JDK官方文档地址:

相关文章:

  • 2021-06-15
  • 2022-12-23
  • 2022-02-07
  • 2021-09-19
  • 2021-08-10
  • 2021-09-01
  • 2021-06-19
  • 2021-12-11
猜你喜欢
  • 2021-07-29
  • 2021-07-12
  • 2021-05-05
  • 2021-11-21
  • 2021-06-26
  • 2021-04-18
相关资源
相似解决方案