JavaShuo
欄目
標籤
Eclipse導入新項目後String、Object等各種java本該有的類型出現報錯,如:String cannot be resolved to a type
時間 2021-01-06
標籤
JAVA
欄目
Eclipse
简体版
原文
原文鏈接
導入項目出現這樣的錯誤,主要是因爲導入項目的JDK版本和當前電腦的JDK版本不匹配,如我的電腦裏面裝的是JDK1.8,但是導入的項目是JDK1.7,所以導致這樣的情況。 解決: 1、右鍵項目選擇Properties打開Properties設置界面,或Alt+Enter 2、選擇Java Build Path,現在Libraries,點擊要替換的jar包,選擇edit 3、選擇默認的JDK,保存
>>阅读原文<<
相關文章
1.
Eclipse報錯 : String cannot be resolved to a type
2.
MyEclipse報錯:String cannot be resolved to a type
3.
String cannot be resolved to a type
4.
springboot項目報錯:String cannot be resolved to a type;Implicit super constructor Object()is undefine。。。
5.
關於Eclipse中導入Java項目總是報錯「XXX cannot be resolved to a type「比如」String cannot be resolved to a type「的解決方案
6.
xxx cannot be resolved to a type
7.
cannot be resolved to a type
8.
javax.servlet.jsp cannot be resolved to a type
9.
HttpServlet cannot be resolved to a type
10.
在eclipse裏導入maven項目時出現錯誤「Autowired cannot be resolved to a type」
更多相關文章...
•
Eclipse 創建 Java 項目
-
Eclipse 教程
•
Eclipse 關閉項目
-
Eclipse 教程
•
Kotlin學習(二)基本類型
•
☆基於Java Instrument的Agent實現
相關標籤/搜索
string
String類
項目報錯
68.string
string&intern
1.string
3.string
5.string
c++string
string#intern
Java
Eclipse
紅包項目實戰
Eclipse 教程
PHP教程
java
後端
Java 8
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
添加voicebox
2.
Java 8u40通過Ask廣告軟件困擾Mac用戶
3.
數字圖像處理入門[1/2](從幾何變換到圖像形態學分析)
4.
如何調整MathType公式的字體大小
5.
mAP_Roi
6.
GCC編譯器安裝(windows環境)
7.
LightGBM參數及分佈式
8.
安裝lightgbm以及安裝xgboost
9.
開源matpower安裝過程
10.
從60%的BI和數據倉庫項目失敗,看出從業者那些不堪的亂象
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
1.
Eclipse報錯 : String cannot be resolved to a type
2.
MyEclipse報錯:String cannot be resolved to a type
3.
String cannot be resolved to a type
4.
springboot項目報錯:String cannot be resolved to a type;Implicit super constructor Object()is undefine。。。
5.
關於Eclipse中導入Java項目總是報錯「XXX cannot be resolved to a type「比如」String cannot be resolved to a type「的解決方案
6.
xxx cannot be resolved to a type
7.
cannot be resolved to a type
8.
javax.servlet.jsp cannot be resolved to a type
9.
HttpServlet cannot be resolved to a type
10.
在eclipse裏導入maven項目時出現錯誤「Autowired cannot be resolved to a type」
>>更多相關文章<<