As we know that we can set -Xmx1024M
in window->preferences->java->installed jres->edit->default vm arguments
in eclipse. But when I package this project into a runnable jar file, how can I set the -Xmx1024M
when running the jar via java -jar A.jar
?
Thanks a lot!
question from:https://stackoverflow.com/questions/20149304/how-to-set-the-xmx-when-start-running-a-jar-file