add memory flag to java command
Merge pull request #21 from mlehman/mem_flag

add memory flag to java command