Eclipse: “The import java.io cannot be resolved”
2017-04-14 22:04
507 查看
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).
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).
相关文章推荐
- 2张图直观解决:Eclipse 的导入Java项目后显示The import java.io.File cannot be resolved 错误
- Eclipse: “The import java.io cannot be resolved”
- The import java.io cannot be resolved 问题解决
- eclipse问题 import java.io cannot be resolved
- “the import java.io cannot be resolved”错误的解决方法
- 【已解决】Eclipse的java代码出错:The import org.apache cannot be resolved
- The import java.io cannot be resolved
- eclipse java文件提示 The import XXX cannot be resolved
- Eclipse的java代码出错:The import org.apache cannot be resolved
- Eclipse The import java.math cannot be resolved 错误
- Eclipse的java代码出错:The import org.apache cannot be resolved
- Eclipse的java代码出错:The import org.apache cannot be resolved
- Eclipse的java代码出错:The import org.apache cannot be resolved
- Eclipse: the import java.util cannot be resolved
- The import java.io cannot be resolved
- Eclipse的java代码出错:The import org.apache cannot be resolved
- Eclipse的java代码出错:The import XXXX cannot be resolved
- Eclipsr导入一个android新项目后出现 The import java.io cannot be resolved
- Eclipse的java代码出错:The import org.apache cannot be resolved
- Eclipse The import java.math cannot be resolved