java - How to pass arguments on the command line when launching JAR? -


i'm trying export application jar file. program uses lot of memory, used -xmx1500m in eclipse make work. works when export (no errors), says vm arguments not part of runnable jar. how can add -xmx1500m application outside of eclipse? tried batch file java -xmx1500m didn't work. suggestions?

try use this:

  java -jar yourjarname.jar arg1 arg2 

Comments