The import java.nio.file cannot be resolved
来源:互联网 发布:漫威电影宇宙 知乎 编辑:程序博客网 时间:2024/06/08 06:51
错误提示如下
Package java.nio.file 定义了接口和类的java虚拟机访问文件,文件属性,文件系统。该错误提示我们myeclipse找不到这个包。java.nio.file是在JDK7才有的。出现这个问题的原因是我们没有用系统的JRE,而是Myeclipse自带的JRE。系统的JRE里面的java.nio下面有。myeclipse下面的java.nio没有。在项目的JRE System Library上面点属性就可以更改了。
JRE System Library-->Properties-->Installed JREs-->Add-->Standard VM-->Next
输入你的JDK的安装环境点击Finish的,然后选中JDK1.7即可。
0 0
- The import java.nio.file cannot be resolved
- The import java.util cannot be resolved
- The import java.util cannot be resolved
- The import java.util cannot be resolved
- The import java.util cannot be resolved
- The import java.util cannot be resolved
- The import java.util cannot be resolved
- The import java.io cannot be resolved
- The import java.sql cannot be resolved
- the import cannot be resolved
- The import ... cannot be resolved
- The import * cannot be resolved
- Nutch1.12源代码导入Eclipse 报错The type java.nio.file.Path cannot be resolved.
- import java.***** cannot be resolved
- Java-The import java.util cannot be resolved
- Eclipse The import java.math cannot be resolved 错误
- 错误:The import java.util.Objects cannot be resolved
- Java--"The import *** cannot be resolved"问题解决方案
- 小知识点集中--容易搞混--经常忘记--
- 51nod oj 1489 蜥蜴和地下室【dfs】
- web教程:Socket与消息推送
- ”不能load layout"问题解决
- 各种移动GPU压缩纹理的使用方法
- The import java.nio.file cannot be resolved
- 欢迎使用CSDN-markdown编辑器
- 【java】实现多线程资源共享
- CSS里面的长度单位px/pt/em/in/pc/mm/cm解释
- isShown和inVisible的区别
- android libyuv库的使用
- 什么方法可以将pdf压缩到最小
- ETC1压缩纹理格式详解
- 1.nginx安装