Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

windows task schedular programming

 
Shankar Arumugam
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ramya Chowdary
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ramya Chowdary
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic