Results 1 to 2 of 2
Thread: java.nio.file
- 08-02-2010, 04:28 PM #1
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:
This is the error I get:Java Code:import java.nio.file; public class PlayingWithPath { public static void main (String[] args) { System.out.println("hi"); } }

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:

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!"Experience is what you get when you don't get what you want" (Dan Stanford)
"Rise and rise again until lambs become lions" (Robin Hood)
- 08-03-2010, 03:38 AM #2
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.htmlSince:
1.7
EDIT: Some cool stuff in Java 7: http://code.joejag.com/2009/new-lang...res-in-java-7/Last edited by Lil_Aziz1; 08-03-2010 at 03:49 AM.
"Experience is what you get when you don't get what you want" (Dan Stanford)
"Rise and rise again until lambs become lions" (Robin Hood)
Similar Threads
-
converting java class file to exe file
By satheeshtech in forum Advanced JavaReplies: 5Last Post: 07-18-2009, 11:47 PM -
To open an image file such as Jpeg file using JAva Program
By itmani2020 in forum Advanced JavaReplies: 10Last Post: 07-11-2008, 09:57 AM -
How to parse the CSV(Comma separation values)file and validate the file using java
By padmajap13 in forum Advanced JavaReplies: 7Last Post: 05-23-2008, 03:46 AM -
How to read a text file from a Java Archive File
By Java Tip in forum Java TipReplies: 0Last Post: 02-08-2008, 09:13 AM -
Converting text file(.txt) to JPG file(.jpg) in java
By javadeveloper in forum Advanced JavaReplies: 0Last Post: 11-09-2007, 04:22 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks