Caused by: java.lang.Error: Unresolved compilation problems:解决办法
2016-06-06 09:50
701 查看
错误信息(我的错误类似,网络copy):
java.lang.Error: Unresolved compilation problems:
The import javax.servlet.ServletContext cannot be resolved
The import javax.servlet.http.HttpSession cannot be resolved
The import javax.servlet.http.HttpSessionEvent cannot be resolved
The import javax.servlet.http.HttpSessionListener cannot be resolved
HttpSessionListener cannot be resolved to a type
ServletContext cannot be resolved to a type
HttpSessionEvent cannot be resolved to a type
HttpSession cannot be resolved to a type
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
HttpSessionEvent cannot be resolved to a type
HttpSession cannot be resolved to a type
解决办法:
原因有很多,解决办法也很多,参考地址:
http://www.360doc.com/content/12/1015/17/4152160_241639166.shtml
http://blog.csdn.net/chl033/article/details/4744601
我的解决办法:
修改eclipse配置:Properties-->Java Compiler--> Compiler compliance level 为你使用的jdk版本(我的是1.7)
java.lang.Error: Unresolved compilation problems:
The import javax.servlet.ServletContext cannot be resolved
The import javax.servlet.http.HttpSession cannot be resolved
The import javax.servlet.http.HttpSessionEvent cannot be resolved
The import javax.servlet.http.HttpSessionListener cannot be resolved
HttpSessionListener cannot be resolved to a type
ServletContext cannot be resolved to a type
HttpSessionEvent cannot be resolved to a type
HttpSession cannot be resolved to a type
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
context cannot be resolved
HttpSessionEvent cannot be resolved to a type
HttpSession cannot be resolved to a type
原因有很多,解决办法也很多,参考地址:
http://www.360doc.com/content/12/1015/17/4152160_241639166.shtml
http://blog.csdn.net/chl033/article/details/4744601
我的解决办法:
修改eclipse配置:Properties-->Java Compiler--> Compiler compliance level 为你使用的jdk版本(我的是1.7)
相关文章推荐
- vc6.0使用PathFileExists(...)函数的时候链接错误的解决办法
- vc+opengl编程unresolved external symbol 报错处理
- 越过调试这道槛——ASP.NET无法调试问题剖析
- ARM发表Java编译器高速技术,看好手机Java游戏
- javascript加密函数
- 动态修改web.config的值
- 常用技巧代码
- 利用pre-compiled headers技术以加速编译速度--以Borland C++ Builder为例(一)
- Macro VS Subroutine(ABAP)
- 转发、跳转、验证、TryParse()、web.config、私有程序集、公有程序集
- Precompiled Header
- FAR使用中的问题
- ffplay无法编译,连接错误
- web.config文件详解
- [转贴]跟symbian相关的几个编译器
- 我的异常网-异常错误汇总-2009-12-14
- 代码大全学习-32-编程工具(Programming Tools)
- A faulty Java prgm
- MOSS Architecture and Shared Services
- Asp.net Ajax Sys 未定义