打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
java.lang.Error: Unresolved compilation problems:解决方案
java.lang.Error: Unresolved compilation problems:
 The type javax.servlet.http.HttpServletResponse cannot be resolved. It is indirectly referenced from required .class files
 The type javax.servlet.ServletResponse cannot be resolved. It is indirectly referenced from required .class files
 The type javax.servlet.ServletRequest cannot be resolved. It is indirectly referenced from required .class files
 The import javax.servlet.http.Cookie cannot be resolved
 The import javax.servlet.http.HttpServletRequest cannot be resolved
 The import javax.servlet.http.HttpServletResponse cannot be resolved
 HttpServletRequest cannot be resolved to a type
 HttpServletResponse cannot be resolved to a type
 The type javax.servlet.ServletException cannot be resolved. It is indirectly referenced from required .class files
 The method buildWrapper() from the type ParameterWrapper refers to the missing type ServletException
 Cookie cannot be resolved to a type
 Cookie cannot be resolved to a type
 HttpServletRequest cannot be resolved to a type
 HttpServletRequest cannot be resolved to a type
 HttpServletResponse cannot be resolved to a type
 
 
问题:项目能正常启动,但在系统登录时却报错!MyEclipse 报错问题。
原因:由于电脑上安装了多个JDK版本,而MyEclipse IDE 使用默认版本,使得 IDE 的Compiler Compliance level 与 Installed JREs 版本不对应而导致错误。
解决方案:将 IDE 的Compiler Compliance level 与 Installed JREs 版本修改为一致。(例如:Compiler Compliance level 使用1.5时,Installed JREs版本则使用jdk1.5.0 )
图解:Compiler Compliance level:
 
 
Installed JREs:
 
 
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
javax.servlet.jsp.PageContext cannot be resolved to a type
(json学习二)使用json需要导入的jar包
Servlet技术(上)
异常错误总结
Httpservlet cannot be resolved to a type的原因与解决方法
The import org.springframework.web.servlet cannot be resolved
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服