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

eclipse, java

Solution

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.

Problem

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

Original source