aspose file tools*
The moose likes Java in General and the fly likes windows task schedular programming Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "windows task schedular programming" Watch "windows task schedular programming" New topic
Author

windows task schedular programming

Shankar Arumugam
Greenhorn

Joined: Oct 05, 2005
Posts: 14
Hi,

I want to use the Windows Task Sheduler to run a method every 1 hour. I
am new to java programming world.So help me out to schedule it using the task scheduler.If possible give me some sample code also.
Pratap koritala
Ranch Hand

Joined: Sep 27, 2006
Posts: 252
You can do that with timers...
But,that logic can be simply implemented like

Spawn a thread , call the method depending upon your condition( simply infinite times)


Kumar Naveen
Greenhorn

Joined: Jul 07, 2008
Posts: 1
Hi

if you want to run the task for every one hour in windows,do like this

START---->SETTINGS------>CONTROLPANEL

in that control pannel we have a folder like scedular task
click on that folder and the addschedular task
and click on next button

follow the steps from there

i think i gave some what answer
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

If you want to create a windows service programatically then Java service wrapper will come to your help.

This is a nice article on using Java service wrapper.


apigee, a better way to API!
Pratap koritala
Ranch Hand

Joined: Sep 27, 2006
Posts: 252
Be Clear When you asking Question.

I think it is Windows Task Scheduler starting a Application rather than method.

Anyway,Java is not suited when you writing windows services and calling lots of Win32 API or any native calls.
[ July 16, 2008: Message edited by: Pratap koritala ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: windows task schedular programming
 
Similar Threads
Include some html code recieved by http request
Pair programming
Can one tell me the problem?
Run Java Class As a Windows Service
Disable the task manager