复现情景:
1.已安装java11.0.19
2.解压tomcat8.0.22
3.双击 D:\apache-tomcat-8.0.22\bin 下的 startup.bat,黑框一闪而过
4.输入网址:http://localhost:8080/
--> 说明tomcat未正常打开
在startup.bat 文件中最后一行添加 “pause” 并保存,双击startup.bat 显示
未看出什么异常
--> 猜测可能是tomcat和jdk版本不兼容
1.解压更高级版本 apache-tomcat-9.0.60
2.确认环境配置无误
3.双击 D:\apache-tomcat-9.0.60\bin 的 startup.bat
黑框正常输出
浏览器输入 http://localhost:8080/
成功
即证明此次是tomcat与jdk版本不兼容导致错误。