Results 1 to 2 of 2

Thread: java.nio.file

  1. #1
    Lil_Aziz1's Avatar
    Lil_Aziz1 is offline Senior Member
    Join Date
    Dec 2009
    Location
    United States
    Posts
    343
    Rep Power
    5

    Default 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:
    Java Code:
    import java.nio.file;
    public class PlayingWithPath {
    	public static void main (String[] args) {
    		System.out.println("hi");
    	}
    }
    This is the error I get:


    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)

  2. #2
    Lil_Aziz1's Avatar
    Lil_Aziz1 is offline Senior Member
    Join Date
    Dec 2009
    Location
    United States
    Posts
    343
    Rep Power
    5

    Default

    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:
    Since:
    1.7
    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/
    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

  1. converting java class file to exe file
    By satheeshtech in forum Advanced Java
    Replies: 5
    Last Post: 07-18-2009, 11:47 PM
  2. To open an image file such as Jpeg file using JAva Program
    By itmani2020 in forum Advanced Java
    Replies: 10
    Last Post: 07-11-2008, 09:57 AM
  3. Replies: 7
    Last Post: 05-23-2008, 03:46 AM
  4. How to read a text file from a Java Archive File
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-08-2008, 09:13 AM
  5. Converting text file(.txt) to JPG file(.jpg) in java
    By javadeveloper in forum Advanced Java
    Replies: 0
    Last Post: 11-09-2007, 04:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •