• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

package java.nio.file does not exist

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..

 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic