- Check your Eclipse preferences: Java -> Installed JREs. The one that you’re using should be marked and it should be a JDK not just a JRE.
- Also check your project’s build path: Right click on the project -> Properties -> Java Build Path Check in the “libraries” folder whether the JRE System Library is present and if not add it using “Add library”->”JRE System Library” and then select the correct one (from an installed JDK).
Eclipse: “The import java.io cannot be resolved”
最新推荐文章于 2021-09-07 20:12:08 发布