I think your command line is wrong... The memory parameters must come *before* -jar blah.jar
The launched application needs its own command line options (nogui means nothing to java.exe) so Java probably uses the parameters before -jar for itself, and the params after get passed to the application.