错误信息(我的错误类似,网络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)

Caused by: java.lang.Error: Unresolved compilation problems:解决办法相关推荐

  1. Exception in thread main java.lang.Error: Unresolved compilation problems 解决方案

    从http://ictclas.org/Down_OpenSrc.asp 下了个中科院分词软件java开发版程序ictclas4j,在eclipse中写了一个类测试下结果,出现以下错误: Except ...

  2. java.lang.Error: Unresolved compilation problems

    一般有两种常见的情况: 1.当一个 jar 文件的 MANIFEST.MF 中已经标记了 Sealed: true 时,这个 jar 内所有的 java package 中的类必须来自这个 jar 包 ...

  3. Exception in thread main java.lang.Error: Unresolved compilation problem

    初学java,使用eclipse编译时,可能会遇到如下图所示的编译错误(Exception in thread "main" java.lang.Error: Unresolved ...

  4. 【Java】Exception in thread main java.lang.Error: Unresolved compilation problem

    使用eclipse编译Java程序出现错误:Exception in thread "main" java.lang.Error: Unresolved compilation p ...

  5. Java错误类型:Exception in thread main java.lang.Error: Unresolved compilation problem: Syntax error,

    提示错误: Exception in thread "main" java.lang.Error: Unresolved compilation problem:      Syn ...

  6. org.apache.axis2.AxisFault: java.lang.Error: Unresolved compilation problem:

    原创:转载请注明出处 今天遇到以下一个异常,找了好长时间,就是不知道什么原因, 在网上搜了好多,也没搜到相关的解决方法. 1.异常展示, org.apache.axis2.AxisFault: jav ...

  7. Exception in thread “main“ java.lang.Error: Unresolved compilation problem: No enclosing instance

    JAVA出现"Exception in thread "main" java.lang.Error: Unresolved compilation problem: &q ...

  8. Caused by: java.lang.NullPointerException: Location is required解决办法

    Caused by: java.lang.NullPointerException: Location is required和java.lang.reflect.InvocationTargetEx ...

  9. Exception in thread “main“ java.lang.Error: Unresolved compilation problem: at second.math_practi

    这是今天我编Java程序遇到的问题,有图有真相: 我的Java文件目录结构如下图: 仔细想想,发现自己没有导包...我也是有段时间没有搞Java了,有点懵..修改后如下图: 运行结果: 祝大家也能顺利 ...

  10. 游戏测试问题之:Caused by: java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000004

    公司开发的小游戏在进行 Monkey 测试时在个别机型一直遇到相同的几个问题,特此记录一下 错误日志如下: Caused by: java.lang.Error: signal 11 (SIGSEGV ...

最新文章

  1. QIIME 2用户文档. 3老司机上路指南(2018.11)
  2. php的异常详解,php5异常处理详解_php
  3. Traceback (most recent call last)AttributeError: ‘NumpyArrayIterator‘ object has no attribute ‘ndim‘
  4. 使用Java将项目插入DynamoDB表
  5. 特征工程系列之降维:用PCA压缩数据
  6. 系统安装教程:Windows7硬盘安装方法详细图文教程及使用工具下载
  7. iOS Xcode热重载工具: InjectionIII 使用简介(无需重启,快速刷新界面,动态调试)
  8. 基于matlab的图像仿真研究,基于MATLAB的图像锐化算法研究与仿真
  9. 侯捷 - C++ Startup 揭密:C++ 程序的生前和死后 (二)
  10. 【数学建模】2017年B题
  11. ELK:ElasticSearch定期关闭和删除索引脚本
  12. 尝试导入导出Alembic动画模型(.abc)
  13. SGD: Maximum margin separating hyperplane程序解析
  14. svchost.exe“病毒”
  15. python中ix用法_Python Pandas DataFrame.ix[ ]用法及代码示例
  16. 怎么给电脑里面的文件加密?这个软件轻松帮忙搞定
  17. python ipad pro_离开 PC,在 iPad Pro 上也能编程了?
  18. 后台管理UI集合--你知道哪些
  19. Android studio下载及安装方法
  20. 从华为起诉三星 看中国知识产权建设

热门文章

  1. 秦牧鸿蒙之体有什么用,第一五一二章 鸿蒙元气
  2. .net 必看书籍1
  3. 被阿里耽误的虾米的一生
  4. 中国最具竞争力的十大调查研究咨询公司
  5. umi封装request方法 ts版
  6. 警惕Linux的传销投机属性,恢复建立契约商业化社会秩序。
  7. android 源码编译 模拟器emulator启动
  8. Anomaly Detection with Partially Observed Anomalies译文
  9. dubbo 的SPI机制Adaptive适配
  10. 腾讯云服务器获取root权限(ubuntu系统)