Do we need to mandatory specify JVM heap memory arguments in bat file while calling .jar file?
For example: start /b "" "jre7\bin\javaw.exe" -Xmx1G -jar XYZ.jar
I have the scenario that in some machine when I explicitly specify the arguments(as above) then Java fatal exception is generated!
Error Message: "Java virtual machine Launcher: Error: Could not create Java virtual machine. Error: A fatal exception has occurred. Program will exit."
But when I remove the arguments then no error is reported. Please anyone let me know. Thank you.