title: Write a batch file that starts a java program
body: <p>So I have a java project with multiple java files. </p>
  
  <p>I know that is almost straight forward to start a java application using batch file. But that is for a pretty simple java program with a single class.</p>
  
  <p>However I am wondering if it is possible to do that with in a scale of a project that you usually create using eclipse. A large project with multiple packages, classes and multiple java files.</p>
  
  <p>My try was to write a script and apply on the main class as following</p>
  
  <pre><code>set path = C:\Program Files\Java\jdk1.7.0_25\bin
  
  javac -classpath twitter/twitter4j-stream-3.0.5.jar;twitter4j-core-3.0.5.jar" sourcepath="lib/twitter4j-core-4.0.1.jar;lib/twitter4j-core-4.0.1.jar;lib/twitter4j-stream-4.0.1.jar;svm_light_lib Program.java
  
  java Program
  </code></pre>
  
  <p>However when I start the .bat file it automatically closes.
  Any Ideas ?</p>
  
  <p>Thanks in advance</p>