I think this should be `-J-Xmx1024` (no space).