遇到问题:双击tomcat7.exe,一闪而过,http://localhost:8080打不开。。。
使用startup.bat启动显示如下:
D:\Program Files\tomcat7\bin>startup.bat
Neither the JAVA_HOME nor the JRE_HOME environment variable is definedAt least one of these environment variable is needed to run this program
原来是因为没有环境变量JAVA_HOME,添加jdk安装目录(非bin目录)映射到JAVA_HOME 就行。
注:cmd进入到omcat安装目录的bin目录中,运行startup.bat窗口会保留出错信息,可以根据错误提示逐步解决。