title: Unable to set JVM parameters/arguments (Xmx and Xms) through .bat file
body: <p>I am able to run a Java program through Eclipse by setting the VM arguments as -Xmx1024m
  -Xms256M. Now I want to run the same Java program (jar) through a .bat file in Windows. I am setting the JVM values in the file as follows</p>
  <pre><code>@echo off
  set JAVA_OPTS=&quot;-Xmx1024m -Xms256m -XX:+HeapDumpOnOutOfMemoryError&quot;
  java -cp TA.jar com.myClass
  </code></pre>
  <p>But when I run the same program through batch (.bat in Windows XP) it throws Out of Memory error and I suspect that the JVM setting through the .bat file is not working.</p>