The type javax.servlet.http.HttpServletResponse cannot be resolved. It is indirectly referenced from required .class files


The type javax.servlet.http.HttpServletResponse cannot be resolved. It is indirectly referenced from required .class files

翻譯:無法解析javax.servlet.http.HttpServletResponse類型。 它是從所需的.class文件間接引用的

https://blog.csdn.net/smartzhaomin/article/details/19487907該網址解決了

是缺少serverlet的引用庫,解決如下
1.工程右鍵-properties->java build path
2.在java build path的libraries tab頁中選擇Add external Jars...按鈕
3. 選擇eclipse的安裝目錄,我的是綠色版本,我本機的路徑如下,你自己需要根據自己的路徑查找添加。E:\eclipse-java-indigo-SR1-win32\eclipse\plugins 選擇javax.servlet.jsp_2.0.0.v201101211617.jar;javax.servlet_2.5.0.v201103041518.jar 進行添加即可
注釋:由於版本不同,文件包名可能稍有區別。
---------------------
作者:smartzhaomin
來源:CSDN


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM