tomcat闪退无法启动 the catalina_home environment variable is not defined correctly this environment variable is needed to run this program

时间:2023-03-08 17:03:45

tomcat闪退无法启动 the catalina_home environment variable is not defined correctly this environment variable is needed to run this program

未成功配置CATALINA_HOME

1、计算机>属性>环境变量, 新建环境变量。变量名为CATALINA_HOME ,变量值tomcat的解压目录,注意后面不用多加“\”或者“;”

tomcat闪退无法启动 the catalina_home environment variable is not defined correctly this environment variable is needed to run this program

2、在环境变量Path中,新增加“%TALINA_HOME%\bin\ "

tomcat闪退无法启动 the catalina_home environment variable is not defined correctly this environment variable is needed to run this program

3、启动tomcat :进入命令行cmd,输入startup.bat

问题插入----------------------------------------------------------------------------------------------------

装完之后运行出现如下但还是无法启动

tomcat闪退无法启动 the catalina_home environment variable is not defined correctly this environment variable is needed to run this program

解决:jdk版本与tomcat版本不匹配换成jdk1.6即可