Add support to set initial Java heap size
and set maximum Java heap size
fix typo