title: Java Heap Space error from command line
body: <p>I have tried to create a small utility which reads excel and sends email. I am using ApachePOI library for that. When I executed the code from eclipse, initially I got <code>java.lang.OutOfMemoryError: GC overhead limit exceeded</code> error. Then I added <code>-Xms1024m</code> in the VM Arguments of eclipse and program worked fine in eclipse.</p>
  
  <p>Then I exported the set of java programs and libraries into RunnableJar and bundled the dependent libraries. </p>
  
  <p>Now from command line when i execute the command</p>
  
  <pre><code>java -Xms1024m -jar AutomateProcesses.jar
  </code></pre>
  
  <p>I am still getting the same error. I am not able to figure out the issue. could someone please help in this regard?</p>