1.确认是否安装Java成功

在cmd运行窗口输入 java
eclipse运行tomcat报错:the specified jre does not exists
在cmd运行窗口输入 java -version
eclipse运行tomcat报错:the specified jre does not exists

2.查看eclipse配置jre路径是否正确

Windows->Preference->Java->Installed JREs
eclipse运行tomcat报错:the specified jre does not exists

3.确认tomcat配置jre路径是否正确

Windows->Preference->Server->Runtime Environments
双击显示tomcat路径(红色圈),若没有配置成功,则报错显示jre路径不存在
eclipse运行tomcat报错:the specified jre does not exists
点击Edit
红圈处改为你安装的jre的版本
eclipse运行tomcat报错:the specified jre does not exists
点击Finish->Apply and close

启动tomcat
eclipse运行tomcat报错:the specified jre does not exists
启动成功!

注意:

tomcat与jdk不是必须安装在同一个盘内,只要保证路径正确即可。

相关文章: