This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Features new in Java 7 and the fly likes Define Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Features new in Java 7
Bookmark "Define "FileSystem" on OS/2 used with "WatchService"" Watch "Define "FileSystem" on OS/2 used with "WatchService"" New topic
Author

Define "FileSystem" on OS/2 used with "WatchService"

G Lee
Greenhorn

Joined: Jun 16, 2012
Posts: 2
Hello,

I need monitor the file changes of a folder on OS/2 system. I've been trying to use the new "WatchService" in Java 7, anyone knows how to do it?
(the "getDefaultSystem" won't work!)

Thanks!
Mike Simmons
Ranch Hand

Joined: Mar 05, 2008
Posts: 3028
    
  10
Well, how exactly does it not work? You're using, what, FileSystems.getDefault()? Or something else? And does it throw an exception of some sort? Return null? Or what?

You might try calling FileSystemProvider.installedProviders() to see what it returns, and then get a FileSystem from one of the providers.
G Lee
Greenhorn

Joined: Jun 16, 2012
Posts: 2
Thanks a lot Mike! I will give it a try tomorrow!

best!

glenn
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Define "FileSystem" on OS/2 used with "WatchService"
 
It's not a secret anymore!