首页 > 编程语言 > 详细

windows 启动tomcat 提示Neither the JAVA_HOME nor the JRE_HOME environment variable is defined

时间:2020-03-29 11:17:31      阅读:511      评论:0      收藏:0      [点我收藏+]

运行tomcat 提示如下:

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 安装目录bin下的setclasspath.bat文件,打开后,新加如下配置:

技术分享图片

 

 

set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_241
set JRE_HOME=C:\Program Files\Java\jre1.8.0_241

新加红框配置,则重新启可以解决。

windows 启动tomcat 提示Neither the JAVA_HOME nor the JRE_HOME environment variable is defined

原文:https://www.cnblogs.com/marshal1983/p/12590850.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!