码迷,mamicode.com
首页 > 编程语言 > 详细

Java出现The import javax.servlet cannot be resolved 的解决方法

时间:2018-10-15 14:49:46      阅读:174      评论:0      收藏:0      [点我收藏+]

标签:.com   文件夹   location   图片   esc   rar   aries   ati   external   

出现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 的解决方法

标签:.com   文件夹   location   图片   esc   rar   aries   ati   external   

原文地址:https://www.cnblogs.com/VolcanoCan/p/9790012.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!