I can run the java program through eclipse by setting the VM arguments to -Xmx1024m -Xms256m. Now I want to run the same java program (jar) via a .bat file in windows. I set the JVM values ββin a 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 the package (.bat in windows xp), it gives an "Out of Memory" error, and I suspect that setting up the JVM through the .bat file does not work.
Can anyone help?
BP_EV source share