一、首先,右键你的javaWeb项目,找到最下边的Properties点击 二、点击Java Build Path,然后,在Order and Export中选择与你的Tomcat相匹配的JDK就OK了