1. 程式人生 > >java中找不到某個類

java中找不到某個類

問題:用Eclipse進行Java程式設計時,檢視類的原始碼,按 Ctrl+滑鼠 左鍵,出現The source attachment does not contain the source for the file xxx.class, You can change the source attachment by clicking Change Attached Source below: 

 解決:點 Change Attached Source below 在External location中 設定 External File 路徑為jdk目錄下的 src.zip。 有些需要設定完了重啟Eclipse。