title: Using task scheduler for running java jar (from batch file)
body: <p>I am scheduling a task (with windows task scheduler) which simply run a batch file.</p>
  
  <p>this batch is running a jar file (Java program) with a simple "Java -jar test.jar".</p>
  
  <p>When i run the script from the command line manually, the java program runs well and no exception is shown.</p>
  
  <p>but when the task schedular does the same (calling the command), the java program ends with an exception: "ClassNotFoundException" for one of the classes which is in my jar.</p>
  
  <p><strong>What way be the cause of this? what is the diffrence when calling the jar from the command line and from the task scheduler?</strong></p>
  
  <p>Thanks.</p>