This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

package java.nio.file does not exist

 
ravi manik
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi..
whenever i compile my code, i get this error : package java.nio.file does not exist
im using jdk1.6.0_14..

 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

That package indeed does not exist on Java 6. Where did you find this; are you looking at API documentation for JDK 7, which is not yet released?

You can look at the API documentation for JDK 6 online here: http://java.sun.com/javase/6/docs/api/
 
ravi manik
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i found it while i was studying i\o from the sun java tutorials: http://java.sun.com/docs/books/tutorial/essential/io/pathOps.html

if its not yet released yet, i wonder why have they given in the beginners tutorial.

can any one suggest another source for studying i\o and file handling.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sun wrote:This section is being updated to reflect features and conventions of the upcoming release, JDK7. You can download the current JDK7 Snapshot from java.net. We've published this preliminary version so you can get the most current information now, and so you can tell us about errors, omissions, or improvements we can make to this tutorial.

And there's a link on the same page regarding mapping to JDK7 from earlier releases:

http://java.sun.com/docs/books/tutorial/essential/io/legacy.html#mapping
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic