I want to specify some JVM arguments when calling a jar file like so:
java -jar filename.jar
I assumed I did it like so:
j
Do it like:
java -Xms256m -Xmx512m -Djava.awt.headless=true -jar filename.jar
hype jar was missing , try
java -Xms256m -Xmx512m -Djava.awt.headless=true -jar
java [Options] -jar [jarfile] [Command Line Arguments]
Please refer
http://docs.oracle.com/javase/7/docs/technotes/tools/windows/java.html
Don't put a space between the -D and java.awt.headless=true.
It should be -Djava.awt.headless=true.