How to find that a java program is running for the first time on daily basi

it is like this
1. i will ran a java program every day and i have to find that it is running for the first time(as i may stop that program and may run again the same day )
Pls share ur ideas

san.kumar wrote:
it is like this
1. i will ran a java program every day and i have to find that it is running for the first time(as i may stop that program and may run again the same day )
Pls share ur ideasAs kajbj said - you need to store a token / file with a run date on the file system. Each time the application runs, have it compare with the date from this file with the current date. If different, it's the first run of the day. If not, it is not the first run of the day. Each time have it update the date on the file.

Similar Messages

  • How can I delete photos from my ipad that came in when I connected for the first time to my pc?

    how can I delete photos from my ipad that came in when I connected for the first time to my pc? HELP

    Photos that were synced from your computer using iTunes can only be deleted by de-selecting them from the folder from where they were synced -  and then re-syncing.
    Connect the iPad to the PC and launch iTunes.
    Click on the iPad name on the left side under devices.
    Click on the Photos Tab on the right.
    If you want to remove all of the Photos - uncheck the Sync Photos from Heading
    Click on Apply in the lower right corner of iTunes
    If you are using iTunes 11 - this will be helpful, Setting up syncing in Windows.
    http://support.apple.com/kb/PH12313

  • How to I get my ipod connected to wifi for the first time..it's an ipod tough 2010 version, refurbished

    how to I get my ipod connected to wifi for the first time..it's an ipod tougch 2010 version, refurbished

    Hi,
    To connect your iPod to wifi just:
         1. Open settings,
         2. Tap Wi-Fi,
         3. Make sure the Wi-Fi switch is on,
         4. Tap the network you would like to connect to,
         5. If  the network has a password then type it in and press join.
    For hidden networks(networks that don't broadcast their SSID(name))
         1. Follow 1-3 above,
         2. Tap other,
         3. Type in SSID(name) of the network,
         4. Select the security of the network,
         5. If there is a password type it in,
         6. Press Join.
    Some public networks may now show a login screen where you  may have to agree to terms and conditions, enter your email etc...

  • HT4060 how long do I have to charge my ipad for the first time?

    how long do I have to charge my ipad for the first time?

    Most iPad come wit a 60-70% charge. You can use it immediately and then charge at your convenience.
    FYI
    The quickest way (and really the only way) to charge your iPad is with the included 10W or 12W (5W on Mini) USB Power Adapter. iPad will also charge, although more slowly, when attached to a computer with a high-power USB port (many recent Mac computers) or with an iPhone Power Adapter (5W). When attached to a computer via a standard USB port (2.5W, most PCs or older Mac computers) iPad will charge very slowly (but iPad indicates not charging). Make sure your computer is on while charging iPad via USB. If iPad is connected to a computer that’s turned off or is in sleep or standby mode, the iPad battery will continue to drain.
    Apple recommends that once a month you let the iPad fully discharge & then recharge to 100%.
    How to Calibrate Your Mac, iPhone, or iPad Battery
    http://www.macblend.com/how-to-calibrate-your-mac-iphone-or-ipad-battery/
    At this link http://www.tomshardware.com/reviews/galaxy-tab-android-tablet,3014-11.html , tests show that the iPad 2 battery (25 watt-hours) will charge to 90% in 3 hours 1 minute. It will charge to 100% in 4 hours 2 minutes. The new iPad has a larger capacity battery (42 watt-hours), so using the 10W charger will obviously take longer. If you are using your iPad while charging, it will take even longer. It's best to turn your new iPad OFF and charge over night. Also look at The iPad's charging challenge explained http://www.macworld.com/article/1150356/ipadcharging.html
    Also, if you have a 3rd generation iPad, look at
    Apple: iPad Battery Nothing to Get Charged Up About
    http://allthingsd.com/20120327/apple-ipad-battery-nothing-to-get-charged-up-abou t/
    Apple Explains New iPad's Continued Charging Beyond 100% Battery Level
    http://www.macrumors.com/2012/03/27/apple-explains-new-ipads-continued-charging- beyond-100-battery-level/
    New iPad Takes Much Longer to Charge Than iPad 2
    http://www.iphonehacks.com/2012/03/new-ipad-takes-much-longer-to-charge-than-ipa d-2.html
    Apple Batteries - iPad http://www.apple.com/batteries/ipad.html
    Extend iPad Battery Life (Look at pjl123 comment)
    https://discussions.apple.com/thread/3921324?tstart=30
    New iPad Slow to Recharge, Barely Charges During Use
    http://www.pcworld.com/article/252326/new_ipad_slow_to_recharge_barely_charges_d uring_use.html
    Best Practices for iPad Battery Charging
    http://www.ilounge.com/index.php/articles/comments/best-practices-for-ipad-batte ry-charging/
    Tips About Charging for New iPad 3
    http://goodscool-electronics.blogspot.com/2012/04/tips-about-charging-for-new-ip ad-3.html
    How to Save and Prolong the battery life of your new ipad
    https://discussions.apple.com/thread/4480944?tstart=0
    Prolong battery lifespan for iPad / iPad 2 / iPad 3: charging tips
    http://thehowto.wikidot.com/prolong-battery-lifespan-for-ipad
    iPhone, iPod, Using the iPad Charger
    http://support.apple.com/kb/HT4327
    Install and use Battery Doctor HD
    http://itunes.apple.com/tw/app/battery-doctor-hd/id459702901?mt=8
    To Extend a Device’s Battery Life, Get to Know It Better
    http://tinyurl.com/b67c7xz
    iPad Battery Replacement
    http://www.apple.com/batteries/replacements.html
    In rare instances when using the Camera Connection Kit, you may notice that iPad does not charge after using the Camera Connection Kit. Disconnecting and reconnecting the iPad from the charger will resolve this issue.
     Cheers, Tom

  • HT4859 How long should it take to back up iphone for the first time with about 6 gigs?

    How long should it take to back up iphone for the first time with about 6 gigs?

    Welcome to the Apple Community.
    The first back up to iCloud may take some considerable time. Just how long isn't really possible to say without knowing how much is in your back up and your connection speed.
    What many people don't realise is that upload speeds are often significantly less than download speeds, so for example a user may have a download speed of 40 Mbps, but only 1 Mbps for uploading. As a rough guide it will take around 2 ¼ hours to upload 1 GB of data at 1 Mbps.

  • How should I charge my iPod touch 4th generation for the first time?

    How should I charge my iPod touch 4th generation for the first time?

    Charge to 100% ...
    Read here > Apple - Batteries - iPod
    And here > Accurately determine your iPod battery life
    Save this link in case it needs service in the future >  Apple - Support - iPod - Service FAQ

  • How long should I let my Iphone 5 charge for the first time?

    How long should I let my Iphone 5 charge for the first time?

    nokhodi wrote:
    How long should I let my Iphone 5 charge for the first time?
    Till it reaches 100%  >  See here  >  http://support.apple.com/kb/HT1476
    More Info here  >  http://www.apple.com/batteries/iphone.html
    From the above link...
    For proper maintenance of a lithium-based battery, it’s important to keep the electrons in it moving occasionally. Be sure to go through at least one charge cycle per month (charging the battery to 100% and then completely running it down).

  • Hi, how many hours should I charge my iPhone 5 for the first time use?

    Hi! How many hours should I charge my iPhone 5 for the first time use?

    However long you like. There is no help or harm in charging it for a given amount of time.

  • How long does it need to charge iphone 5 for the first time?

    Does anyone knows how long does it need to charge iphone 5 for the first time?
    Message was edited by: Islius

    Until it reads 100%

  • How does one get to use their apple id for the first time?

    I registered for an Apple ID, which was successsful, but i can't seem to use it, because everytime i try to use it on iTunes it says I have never used this account before, and directs me to the review option which i select but it does the same thing all over again and I can't upgrade to the latest version, because System Preference is failing to open when I try to open the **** thing

    Hi RegoAntony,
    I apologize, I'm a bit unclear on the exact nature of what you are describing. If you are trying to use your Apple ID for the first time in the iTunes Store, you may find the following article helpful:
    Using an existing Apple ID with the iTunes Store, Mac App Store, and iBooks Store
    Regards,
    - Brenden

  • How long dose it take to chare a playbook for the first time?

    I just got a new PlayBook 16GB Wifi and wondering how long dose it take to charge? I didnt turn it on yet so im wondering. Also how will i know when charging is finished? Thanks!

    with the charger that came in the box it can take 10 hours depending how depleted the battery is. touch the battery icon and a drop down window will open that shows percentage of charge. use only the original charger or optional rapid charger. a little lightning bolt symbol across the battery indicates that it's charging.

  • How to show expanded text in popinTextBar in Table, for the first time

    hi everyone.
    For first time, not clicking popin button,  I want to display expaned popInText in textBar in table.
    Is it possible?
    Regards bk Kim.

    Hi kin
    The code you must write in the wdModify(wdthis,edcontext,view,firstTime) method
    This method takes 4 parameters.The last boolean parameter firstTime indicates wether your screen is rendering for the firstTime or not.So in this method
    write
    if(firstTime)
       // write the code you want to do so that it will execute only for the firstTime in   the entire life cycle of a view controller.It will execute with out clicking a button
    regards
    kalyan

  • HT4859 how long does it take to backup your phone for the first time using icloud?

    I have never used Icloud before and now my phone wants to be resotred so I am trying to back everything up using Icloud it just dosent seem to be moving and it just continues to say estimated time ...

    Hello there jspin11,
    The amount of time that the iCloud backup will take depends on a few factors the 2 most important are the amount of data to be backed up, and the internet connection speed.
    I found a great resource for troubleshooting iCloud backups named iCloud: Troubleshooting creating backups found here http://support.apple.com/kb/ts3992.
    General information
    iCloud Backup requires a Wi-Fi connection to the Internet.
    Automatic backups occur when you've plugged in your iOS device, locked the screen, and have connected it to Wi-Fi.
    You can manually start a backup by tapping Back Up Now in Settings > iCloud > Storage & Backup (requires a Wi-Fi connection to the Internet).
    iCloud Backup will provide helpful information and status messages related to backups at the bottom ofSettings > iCloud > Storage & Backup.
    If automatic backups don't work as expected, test to see what happens when you start a manual backup by tapping Back Up Now at the bottom of the Storage & Backup screen.
    Backups and restores both take time, especially if you have a lot of data or a slow connection. Depending on the size of your data and the speed of your network, you may need to give more time than you expected to a backup or restore.
    Make sure you have at least 50 MB of free space available on your iOS device before you back up. If you have no space available on your device, iCloud Backup can fail in some cases. You can verify how much free space you have available on your iOS device in Settings > General > About.
    SettingsiCloud Backup settings are controlled on a per-device basis from Settings > iCloud > Storage & Backup.
    To view Storage & Backup settings:
    Tap Settings > iCloud > Storage & Backup.
    Tap Manage Storage.
    Tap your device's name. From here you can:
    View the size of your backups and see the storage used by each app.
    Enable or disable Backup for each app.
    Delete Backups.
    Buy more storage.
    If you're out of iCloud Storage space, you can apply several solutions:
    Exclude Camera Roll and other large data from iCloud backups of your device by going to iCloud > Storage & Backup > Manage Storage and choosing your device.
    Remove some of the larger files on your device, such as large audio or video files, from your Camera Roll in order make more space.
    Remove existing Backups.
    Purchase more storage.
    For more information about managing and using the Storage & Backup settings, see this article.
    If an issue persists and you are not able to resolve it using the methods discussed in this article, contact iCloud Support for additional assistance.
    All the best,
    Sterling

  • How long do I need to charge my phone for the first time?

    How long should I charge it before using? Anyone knows?

    Hi Virginia,
    It's probably best to just let it charge to 100%, however, if you needed to use it before it got to 100%, it won't hurt anything to do so.
    Cheers,
    GB

  • I've lost a load of notes, but dont know why or how to get them back. I cant find the folder that is in my Yahoo account that people have suggested might be the location for the messages.  I recently signed into iCloud for the first time.

    I've lost a load of notes, but dont know why or how to get them back. I cant find the folder that is in my Yahoo account that people have suggested might be the location for the messages.  I recently signed into iCloud for the first time.  Any idea how to get the notes back?   I really dont want to lose them.

    It should keep asking for the password, because it's trying to check for purchases... As soon as you login, it will see you have pending downloads and create the downloads section on the left below Purchases under the Store section. Then it will start the music downloads there, as they will be listed one below the other.
    You could just try to check your account balance or view your account and that will trigger a password request too. You can just click on that and say that now iTunes keeps asking for the password and ask him to help you with that. Trick would be to interrupt him so that he carries on with another task after, so he doesn't notice the download. Or you carry on with email or browsing which you were "busy" with when iTunes interrupted you for the password (stupid iTunes)

Maybe you are looking for