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
@echo off
set JAVA_OPTS="-Xmx1024m -Xms256m -XX:+HeapDumpOnOutOfMemoryError"
java -cp TA.jar com.myClass
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.
Can some one please help?