Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-07-2008, 09:13 AM
Member
 
Join Date: Aug 2008
Posts: 8
Farzaneh is on a distinguished road
writing a program launcher (or Timer)
Hi all,
I should write a program for launching another program.
The launcher should launch the main program at a specific time and date, and stop it in another specific time and date.This operation should be repeated every day or weak or month. Time and date and periods are set by user.
I don't have any clue on how to write such a program in Java.
Is this possible with java? Could some one help me and say how to do this? or if someone has a similar code?

Thanks
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-07-2008, 10:49 PM
Nicholas Jordan's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 789
Nicholas Jordan is on a distinguished road
use chron
Quote:
Originally Posted by Farzaneh View Post
.....Is this possible with java? Could some one help me and say how to do this? or if someone has a similar code?
Scheduling on an in program while running has basis Timer and TimerTask which will do that, but on trying to do that myself I was advised by ftr who knows what he is doing to use chron, which is a system level utility. In general, such a task would be a system level task, and therefore should be done with utilities written for that purpose. As well, such utilities have been in use and that provides great proveability / reliability.

Is this a student project?... If so, there will be avenues of arriving at the design available. If it is commercial, there may be limitatioins that hinder reliability.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

Last edited by Nicholas Jordan : 09-08-2008 at 01:23 AM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how begin with writing a new program ? dimitrist New To Java 11 05-13-2008 05:49 AM
How to cancel an individual timer in spite of canceling whole timer Java Tip java.util 0 04-04-2008 04:46 PM
Timer usage in java program sandeeprao.techno New To Java 5 01-24-2008 09:16 PM
Help needed writing a program... Francis New To Java 2 11-22-2007 04:03 PM
writing to a excel file from java program priyankabhar New To Java 1 07-10-2007 10:05 PM


All times are GMT +3. The time now is 09:16 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org