首页 > Web开发 > 详细

The method getContextPath() from the type HttpServletRequest refers to the miss

时间:2015-05-27 09:59:30      阅读:378      评论:0      收藏:0      [点我收藏+]

运行程序报错

 

提示如下:The method getContextPath() from the type HttpServletRequest refers to the missing type

 

技术分享
 解决方法:

 

1 右击该项目 - Build Path - Configure Build Path , 在 Libraries 选项下,会发现有个出错的jre Libraries,将其Remove掉。

技术分享
 

2 然后右击该项目 - Build Path - Add Library, 选择JRE System Library,选择Workspace defaulr JRE(jdk1.6)(此前JDK已成功安装并配置好), 然后 Finish 。

技术分享

参考文章:http://blog.csdn.net/home_zhang/article/details/8548560

The method getContextPath() from the type HttpServletRequest refers to the miss

原文:http://blog.csdn.net/tfy1332/article/details/46042717

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!