原理:把RunTime容器添加进去,比如tomcat的。

1、项目右键->【Build Path】->【Configure Build Path...】

 JSP页面顶端出现错误:The superclass_tomcat

 2、把tomcat的runtime添加进去

JSP页面顶端出现错误:The superclass_tomcat_02

JSP页面顶端出现错误:The superclass_tomcat_03

JSP页面顶端出现错误:The superclass_tomcat_04

3、如果发现JRE的版本不正确,也可以进行更新,如下是我改成jre8.0的。

JSP页面顶端出现错误:The superclass_tomcat_05

JSP页面顶端出现错误:The superclass_eclipse_06

JSP页面顶端出现错误:The superclass_java_07

这里也可以直接配置,选择第二项。