java.nio.file.files,错误:导入java.nio.file.Files无法解析

Java newbie here,

Using jdk1.8.0_05, I seem to be unable to resolve the java.nio.file.Files class

import java.nio.file.Files;

with the following error:

The import java.nio.file.Files cannot be resolved

All other java.nio.file.* Classes (Path, Paths, FileSystem, etc.) seem to resolve just fine. Based on other answers I've made sure of the following:

Java build path set to JRE System Library jre8 for the project

Set workspace compiler compliance level to 1.7, as high as it goes

I'm using eclipse 3.7.2.

Thanks for the help

解决方案

This is definitely something to do with the version of eclipse (3.7.2) that I was using. Someone gave me their copy of android developer tools and the problem went away.

So... Update your eclipse if you see this.

你可能感兴趣的:(java.nio.file.files,错误:导入java.nio.file.Files无法解析)