It's not a secret anymore!
The moose likes I/O and Streams and the fly likes POSIX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "POSIX" Watch "POSIX" New topic


meeta gaur
Ranch Hand

Joined: Dec 05, 2012
Posts: 305

Exception in thread "main" java.lang.UnsupportedOperationException
at sun.nio.fs.WindowsFileSystemProvider.readAttributes(
at java.nio.file.Files.readAttributes(
at POSIXFilePermissions.main(

My one regret in life is that I am not someone else.
- Woody Allen
Tony Docherty

Joined: Aug 07, 2007
Posts: 2836
Please read the API docs for this method. It says this exception is thrown if the given attribute type is not supported.
I agree. Here's the link:
subject: POSIX
It's not a secret anymore!