天天看點

Eclipse: class file editor ------ source not found 問題解決方案

Eclipse: class file editor: source not found…

最近在使用eclipse檢視源碼時提示Eclipse: class file editor: source not found

Eclipse: class file editor ------ source not found 問題解決方案

此時 我們進行以下操作

1、點選按鈕Attach Source…或者Change Attached Source…

2、在彈出的提示框中選擇External location,然後點選右側的External(選擇路徑)

3、然後選擇jdk安裝目錄下的src.zip(src.zip是源代碼的壓縮檔案)

本人安裝在C槽(每個人安裝目錄可能不同,要選擇自己的安裝路徑)

Eclipse: class file editor ------ source not found 問題解決方案

4、點選确認

5、重新整理eclipse就可以正常顯示了

Eclipse: class file editor ------ source not found 問題解決方案