Results 1 to 4 of 4
  1. #1
    dhazwa is offline Member
    Join Date
    Jul 2011
    Posts
    15
    Rep Power
    0

    Default whats the deal with windows 7 task scheduler?

    Hello all!

    So far I have used this forum twice to help me make a program that opens up internet explorer, goes to facebook, and logs me in automatically. Everyone here has been super helpful. The program ran great in eclipse, it ran great as a separate .jar file when i double clicked it, but when I tell windows 7 task scheduler to run the .jar file when windows starts, all of a sudden it comes up with an error message saying it cant find the main class! I tried setting a timed start of the .jar file to see if it was just happening when windows started, but the same thing happened. Does task scheduler not run .jar files, or did I just not export my program right? I am at a total loss, so anything will help.

    Thanks!

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default

    Does the program run if you execute it from the command prompt, but from a different folder/directory?
    Java Code:
    C:\>java -jar path/to/folder/abc.jar
    db

  3. #3
    dhazwa is offline Member
    Join Date
    Jul 2011
    Posts
    15
    Rep Power
    0

    Default it runs from the command prompt

    Quote Originally Posted by DarrylBurke View Post
    Does the program run if you execute it from the command prompt, but from a different folder/directory?
    Java Code:
    C:\>java -jar path/to/folder/abc.jar
    db
    It does run from the command prompt, and it also runs from the command prompt from a different folder.

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,817
    Rep Power
    19

    Default

    Can you give the full error message you're getting?
    Also, how have you set it up as a task?

Similar Threads

  1. How to best deal with large file uploads ?
    By HeapSpace in forum Advanced Java
    Replies: 36
    Last Post: 06-08-2011, 07:32 PM
  2. Task Scheduler
    By fabs in forum Threads and Synchronization
    Replies: 3
    Last Post: 04-21-2009, 11:17 AM
  3. Replies: 0
    Last Post: 04-12-2009, 04:16 PM
  4. Executing java program using windows scheduler
    By kanitha in forum New To Java
    Replies: 0
    Last Post: 03-21-2009, 09:16 AM
  5. Replies: 1
    Last Post: 08-07-2007, 05:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •