1. 程式人生 > >Java出現The import javax.servlet cannot be resolved 的解決方法

Java出現The import javax.servlet cannot be resolved 的解決方法

cannot 打開 des 列表 bubuko mat mage conf 分享

出現The import javax.servlet cannot be resolved 的解決方法  

網上提供的方法是,在Eclipse中,右擊項目,選擇Build Path->configure build path->Libraries->Add External JARs,找到你計算機中tomcat的解壓路徑,在lib文件夾下選中"servlet-api.jar",添加點擊“確定”

技術分享圖片

Description Resource Path Location Type Java compiler level does not match the version of the insta

  在項目上右鍵Properties-》Project Facets,在打開的Project Facets頁面中的Java下拉列表中,選擇相應版本。
有可能是java1.6 改成java6之類的

Java出現The import javax.servlet cannot be resolved 的解決方法