-
java.nio.file
Hi. I'm having a problem with java.nio.file. My IDE and my javac fails to recognize java.nio.file. Here is what I get when I try to compile a source file with the following content:
Code:
import java.nio.file;
public class PlayingWithPath {
public static void main (String[] args) {
System.out.println("hi");
}
}
This is the error I get:
http://i180.photobucket.com/albums/x...eTimeError.png
To make sure that my java and javac are up to date, I did javac -version and java -version and this is what I get:
http://i180.photobucket.com/albums/x...avaVersion.png
for java -version I just get "javac 1.6.0_20"
I have a Path environmental variable that is set to C:\Program Files\Java\jdk1.6.0_20\bin. My Path system variable doesn't have JRE's location.
Anyone know what's wrong with this? Thanks in advance!
-
Oh would you look at that. It doesn't exist yet. ;\
java.nio.file: java.nio.file (More New I/O APIs for the Java™ Platform)
If one scrolled down all the way, he will see this:
Same thing with java.nio.file.Path: http://openjdk.java.net/projects/nio...file/Path.html
EDIT: Some cool stuff in Java 7: http://code.joejag.com/2009/new-lang...res-in-java-7/