title: install4j java insufficient memory error not being reported to user
body: <p>We had a situation where there really was insufficient memory for java, but no visible error was seen until the app was run with the -console option. Then we got an error on the console like:</p>
  
  <pre><code>Error occurred during initialization of VM
  Could not reserve enough space for 2097152KB object heap
  </code></pre>
  
  <p>The app is built with the "Fail if an exception in the main thread is thrown, but that does not appear to help.
  <a href="https://i.stack.imgur.com/iCmnF.png" rel="nofollow noreferrer">Configuration Image</a></p>
  
  <p>java version "1.8.0_162"</p>
  
  <p>Is there some other setting that can make such a memory error more visible?</p>