I am reading java documentation that tells me that a java.nio.file namespace must exist. But when I try to import it, the precompiler complains that it does not exist.
What?
java.nio.file is included in Java 7. It is not in Java 6 or earlier.
java.nio.file
You should read the JDK7 docs .
Until then, you were stuck in a heap of annoying trouble, which is java.io.File .