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 8392631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:33:47+00:00 2026-06-09T19:33:47+00:00

I have a java application (jar file) and I want to add some sort

  • 0

I have a java application (jar file) and I want to add some sort of scheduling option in it. This means that the application will offer users the ability to carry out a particular job automatically in intervals as defined by the users themselves. I was thinking of calling the scheduler from the command line (through Java code), such as using the ‘AT’ command for Windows and Anacron for UNIX-based systems.

My first part of the question is about the ‘AT’ command in Windows:

I have tried using the ‘AT’ command from the command line directly however I can’t seem to get it to work. The job is listed as a scheduled task, however when the time elapses the task is not executed. (The task that I’m trying to run is a jar file which runs perfectly normal when I run it from the command line without the scheduling.) Would anyone be kind enough to point out anything that I might be doing wrong? The command I am supplying is as follows:

‘AT XX:XX java -jar C:….\xyz.jar’ ,where XX:XX is the time that I want to run it at.

The second part of the question is about any other different implementations of such functions:

I am open for ideas, so if there is a different way of implementing such a function please do not hesitate to mention it. The implementation has to be cross-platform and if possible, free.

  • 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-09T19:33:49+00:00Added an answer on June 9, 2026 at 7:33 pm

    Really only an answer to the second part of your question, but you might want to take a look at Quartz Scheduler.

    You can also potentially use a framework like Spring that supports Quartz to simplify and understand the usage further Quartz Scheduling with Spring.

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

Sidebar

Related Questions

I have written a standalone Java application that I've packaged into a jar file
I have a Java application that I want to turn into an executable jar.
i want to create a jar file of my java web application. This web
I have created a java application and packed it into a jar file on
For our Kunagi Java web application we have a signed kunagi.jar file which contains
I have a simple java application that loads a properties file from the current
I have a java application launched by a .cmd file. I want to set
I have created a jar file in java, and I want to make the
I have created a jar-file with a compiled Java class. Now I want to
Hi I have created a java application and created a jar file. Then I

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.