Specifying JVM arguments when calling a jar file?
Do it like:
java -Xms256m -Xmx512m -Djava.awt.headless=true -jar filename.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.
hype jar was missing , try
java -Xms256m -Xmx512m -Djava.awt.headless=true -jar