I had a situation where I was not able to install using installation manager. Installation manager was launching but when I was trying to install workbench or something else, it was shutting down with following error:
JVM terminated. Exit code=1
After doing some googling, I found the solution and added the following
in both as last line
After that everything was fine.