• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to use Jnotify in java  RSS feed

 
Sharon Wong
Ranch Hand
Posts: 37
IBM DB2 Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to use Jnotify? i have a coding as below..


my "C:\sampleDirectory" as below:


My output result surpose will show the latest date created contents in PDF, but it will show the last contents file for my looping at here "for (File file : files){". Please kindly advice, what should i do now?

Thank you very much
 
Tim Moores
Saloon Keeper
Posts: 4034
94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is jNotify? What should it do, and what does it do instead? Post the actual output and the expected output.
 
Sharon Wong
Ranch Hand
Posts: 37
IBM DB2 Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JNotify is a java library that allow java application to listen to file system events, such as: File created.
 
Tim Moores
Saloon Keeper
Posts: 4034
94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So it's similar to Java's built-in facility http://docs.oracle.com/javase/tutorial/essential/io/notification.html? What about the second part of my question?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!