刚才突然碰到的一个问题,我随手建了个servlet,竟然提示我the type servletException is not api,反正是没有servlet-api,如果遇到类似的问题,应该也可以这样解决。 就是右键点击该工程,选择buildpath->configure buildpath出现下面这个 然后将图片上选中的JRE System..然后选择Remove,移除掉,然后再选择Add Library添加进去就好了