I want a java schedule program that runs every hour . It should search for in a directory for the latest files received in a hour and should read those files for every one hour . its a very urgent and your help is highly appreciated . Using java.util.Timer etc.
What operating system are you running? If you are running Linux, usually you use cron to schedule jobs like this. You can write your program in Java without any of the scheduling logic. The cron daemon will run your program at the specified times. Check the man pages for more details or visit our Linux/Unix forum.
However, I'm willing to bet you are using Windows instead. As Srinivasa mentioned above, you can probably google for a scheduler for Windows that works similarly to cron.