Problem with import java.nio.file
<p>Why this line doesn't work?</p>

<pre><code>import static java.nio.file.AccessMode.*;
</code></pre>

<p>Eclipse says:</p>

<pre><code>The import java.nio.file cannot be resolved
</code></pre>

<p>Here is the whole program so far:</p>

<pre><code>import static java.nio.file.AccessMode.*;

public class CheckFileAccessibility {
 public static void main(String[] args) {

 }
}
</code></pre>

<p>I am following the official Java tutorial here: <a href="http://java.sun.com/docs/books/tutorial/essential/io/check.html" rel="nofollow">http://java.sun.com/docs/books/tutorial/essential/io/check.html</a></p>
