Neither the JAVA_HOME nor the JRE_HOME environment variable is defined

Centos7.5  启动tomcat报错

报错:

1
2
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

原因:没有安装java

解决方法:安装java

1
yum install java -y

  

 

posted @   吕涵之  阅读(266)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示