Why this line doesn’t work?
import static java.nio.file.AccessMode.*;
Eclipse says:
The import java.nio.file cannot be resolved
Here is the whole program so far:
import static java.nio.file.AccessMode.*;
public class CheckFileAccessibility {
public static void main(String[] args) {
}
}
I am following the official Java tutorial here: http://java.sun.com/docs/books/tutorial/essential/io/check.html
Look at the superordinate chapter. It says:
So it’s about java 7.