Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8116239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:45:28+00:00 2026-06-06T03:45:28+00:00

One of my application tasks is to get the current system date and compares

  • 0

One of my application tasks is to get the current system date and compares it with a stored date in my database,i want to make a thread that runs once the system starts in order to get the current date, in other words i want my application to work in the background once the system is started, how to do that,thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T03:45:32+00:00Added an answer on June 6, 2026 at 3:45 am

    Take a look at Apache Procrun. Its a Windows executable, that allows you to install / uninstall java programs as Windows services.

    Installation of the service goes as follows (from the project site):

    prunsrv //IS//TestService --DisplayName="Test Service" \
        --Classpath=myAwesomeService.jar \
        --Install=prunsrv.exe --Jvm=auto --StartMode=jvm --StopMode=jvm \
        --StartClass=my.awesome.package.MyStartClass --StartParams=arg1;arg2;arg3 \
        --StopClass=my.awesome.package.MyStopClass --StopParams=arg1#arg2
    

    After that, you just start/stop the service using:

    net start TestService
    net stop TestService
    

    or using Services view from My Computer.

    Your start / stop classes should have main(String[] args) methods implemented that will handle starting / stopping of your thread.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to get one process CurrentThreadId. i can get my application Current Thread
iam developing one application.In that i need to get the music files from the
Actually I am developing one application in that when application run first time it
Iam developing one application.In that iam placing the radio buttons(uiimageview) on table view and
I am developing one application.In that i am using the imageviews .SO before changeing
Iam developing one application.In that iam using one uiimageview.And take another image view and
Iam developing one application.In that iam using the uilabels.And my problem is i need
Iam doing one application in iphone.In this i need to get the browsing history
I am developing one application. In that I set the notification in viewcontroller1. And
Can any one please advise me how I can get the current count of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.