File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Threads and Synchronization and the fly likes how to schedule a java class? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "how to schedule a java class?" Watch "how to schedule a java class?" New topic
Author

how to schedule a java class?

sudhir verma
Greenhorn

Joined: Mar 21, 2003
Posts: 3
hi!
i have a java class that sends e mail messages...!
its synchronised with some particular event on who's completion. it sends the mail!
now i want this class to run automatically 24 hrs...how can i do that?
Leandro Oliveira
Ranch Hand

Joined: Nov 07, 2002
Posts: 298
Take a look at java.util.Timer and java.util.TimerTaks. With a Timer you can schedule a task.

I don't know much about this classes, but hope somebody in the forum knows...
 
IntelliJ Java IDE
 
subject: how to schedule a java class?
 
Threads others viewed
Java with Lotus notes
Problem with java mail
using Quartz scheduler with Struts
Problem with Java Mail
running java application in background
developer file tools