the import java.util cannot be resolved
導入JRE System Library.
- 右鍵項目
- Build Path
- Configure Build Path... (點擊后打開 Properties for ProjectName 對話框, ProjectName是你的工程名稱)
- 點擊左側Java Build Path
- 選擇Libraries選項卡
- 點擊右側Add Library按鈕
- 在彈出的Add Library對話框內選擇JRE System Library
- Next -> Finish