【專案錯誤總結】XX cannot be resolved to a type
遇到的問題
原因
我的myeclipse版本是10.7的,spring版本是4.1的。之前jdk版本是1.6的報以上的錯誤,後來換成1.8的,仍然有這個錯誤。
spring4.1不相容jdk1.6及以下的版本;myeclipse10配置jdk不支援jdk1.8,最高支援1.7。所以根據我的環境,我需要配置版本1.7的jdk。
解決方案
把jdk換成1.7版本的。
相關推薦
【專案錯誤總結】XX cannot be resolved to a type
遇到的問題 原因 我的myeclipse版本是10.7的,spring版本是4.1的。之前jdk版本是1.6的報以上的錯誤,後來換成1.8的,仍然有這個錯誤。 spr
Maven專案中提示:Eclipse “cannot be resolved to a type” error
我的解決辦法是這個: 臨時解決方法是:Clean專案 ********百度到的其他解決辦法,統一歸納此處****************** (1)jdk不匹配(或不存在) 專案指定的jdk為“jdk1.6.0_18”,而當前eclipse使用的是“jdk1.6.0_22”。需要在Bu
部署專案報錯 清一色的cannot be resolved to a type
今天下載一個專案包部署到tomcat時,錯誤框裡清一色的cannot be resolved to a type:記得之前遇到這種問題的時候一般是build path中jar包的問題,或者是jdk版本的問題,這次進去build path沒發現有jar包出錯,也換了新的jdk還
maven專案,程式碼正確的情況下,整個專案中的類報cannot be resolved to a type
eclipse中,匯入maven專案, install後,仍有很多類報cannot be resolved to a type,這是因為未update maven, 並且專案的clean與maven的clean不同步的結果 解決方案: step1. Project--
【BUG】java/main中寫入了註解@Test XXX cannot be resolved to a type!Multiple annotations found at this li
由於上次在java/main中寫入了註解@Test,由於後續的解決驢脣不對馬嘴,造成了特大錯誤。報錯也是接二連三,主要的報錯有 1、原來正常匯入com.taotao.pojo中的類不能夠匯入了,顯示以下錯誤,全部都不能用 XXX cannot be resolved to
HttpServlet cannot be resolved to a type錯誤解決方案
HttpServlet cannot be resolved to a type報錯 原因解釋: jdk 裡不包括servlet-api.jar 這個包,此包在Tomcat 中存在 專案名–> 右鍵 –>Property–> 選擇 Java Build Pa
number (2)編譯錯 (類的大小寫錯誤) Filewriter cannot be resolved to a type
沒找到所使用的類所在的類定義,一般常見於使用了外部jar中的類,但有對應的import語句。比如,如果程式中使用了ArrayList這個類,但你程式類檔案的最開始import部分如果沒有import java.util.ArrayList;這句話的話,ArrayList出線的地方就會報ArrayLi
xxx cannot be resolved to a type 錯誤解決方法
xxx cannot be resolved to a type引言 eclipse新匯入的專案經常可以看到“XX cannot be resolved to a type”的報錯資訊。本文將做以簡單總結。 正文 (1)jdk不匹配(或不存在) 專案指定的
javax.servlet.ServletException cannot be resolved to a type錯誤解決方法
在頁面中使用全域性路徑時${pageContext.request.contextPath}出現javax.servlet.ServletException cannot be resolved to a type錯誤,解決方法如下:這個錯誤主要是因為缺少jsp-api.ja
關於Eclipse maven專案中的“Autowired cannot be resolved to a type”報錯問題的解決方法
出錯提示:Autowired cannot be resolved to a type;問題截圖:第一想法:應該是缺少了jar包。找到對應的包如下:點選對應類打開發現問題如下:很明顯地可以看出確實是jar包出現了問題,找到本地倉庫,刪除這個jar包,然後重新下載。在Eclip
MyEclipse/Eclipse中enum cannot be resolved to a type 錯誤解決
概要: enum型別是在jdk1.5之後出現的,所以在java中要使用enum型別需要jdk1.5以上 場景: 在MyEclipse中有時候我們機器上明明裝的就是jdk1.6,配置的也是jdk6,可就
org.apache.jasper.JasperException: Unable to compile class for JSP: List cannot be resolved to a type 錯誤
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 163 in the jsp file: /touch/management/pe
關於javaWeb專案中HttpServlet cannot be resolved to a type報錯問題
java web中報錯HttpServlet cannot be resolved to a type;缺少servlet-api.jar架包,在自己電腦上找到servlet-api.jar並將其cope在對應專案WebContext/WEB-INF目錄下的lib 資料夾下,
InterceptorRef cannot be resolved to a type 錯誤解決辦法
今天在通過註解寫Interceptor時,在使用@InterceptorRef時,一直出現InterceptorRef cannot be resolved to a type。按經驗,
XXX cannot be resolved to a type
java tab pan tel req jpeg color form mon 雖然class導入到了jsp, 仍會報錯XXX cannot be resolved to a type 如 BitMatrix cannot be resolved to a type。
jsp 頁面 javax.servlet.jsp.JspException cannot be resolved to a type 異常
not pro ima png post version 圖片 exce com <dependencies><dependency><groupId>javax.servlet</groupId><artifactId
Springboot中"RestController cannot be resolved to a type"
blank con 但是 ont ring 支持 style bsp -s 剛開始學習Springboot,然後使用http://start.spring.io/生成了一個實例,但是在使用@RestController註解的時候提示”RestController canno
javax.servlet.jsp.PageContext cannot be resolved to a type
not in cti 報錯 clas div stack contex question pen jsp項目中報錯: javax.servlet.jsp.PageContext cannot be resolved to a type stack overflow上找的解決
解決javax.servlet.jsp.JspException cannot be resolved to a type
pex jsp lib javax art jar let article 存在 java開發工具 在導入新項目後出現 javax.servlet.jsp.JspException cannot be resolved to a type錯誤信息: 解決方案: 看看項目
解決javax.servlet.jsp.JspException cannot be resolved to a type異常問題
使用eclipse-juno新建的maven專案,使用過程中無任何問題,但是換了eclipse-luna版本後,匯入同樣的maven專案,則報javax.servlet.jsp.JspException cannot be resolved to a type錯誤;這可能是新版本eclipse的bu