title: Start Java Program by Script in Linux
body: <p>I want to start my java program by script. I also want to include .jar files by executing the script.<br>
  My script looks like this:</p>
  
  <pre><code>if [ -d ./bin ]; then
      rm -fr ./bin
  fi 
  mkdir ./bin
  
  javac -sourcepath ./src -d ./bin -cp ./../Jars/CFMgr.jar ./src/gui/App.java
  if [ "$?" != "0" ]; then
      echo "compile errors..."
      exit -1
  fi
  java -classpath ./bin:./../Jars/CFMgr.jar:./../Jars/ojdbc14.jar gui.App
  </code></pre>
  
  <p>Every time I execute it with this command <code>./script.sh</code> in the linux terminal, I get the following error:</p>
  
  <p><a href="https://s4.postimg.org/kevatu0nx/Unbenannt.png" rel="nofollow">https://s4.postimg.org/kevatu0nx/Unbenannt.png</a></p>