tags:

views:

475

answers:

2

I'm new to java so I am not familiar with the framework yet. I am reading java documentation that tells me there should be a java.nio.file namespace. But when I attempt to import it the precompiler is complaining that it doesn't exist.

What's up?

+5  A: 

java.nio.file is coming in Java 7. It's not in Java 6 or before.

You must be reading the JDK7 docs.

Until then, you're stuck with the steaming heap of unpleasantness that is java.io.File.

skaffman
ahhh... so go get the new jdk.. gotcha. Thanks
Nick
Be careful, JDK7 is still a long way from final release. It does seem to be reasonably stable, though.
skaffman
I was just noticing that. Looks like I have latest release. I'll just get the correct documentation.
Nick
A: 

Note that there is no Java precompiler. At least from the outside, the Java compiler acts as a single program.

Carl Smotricz