title: 'Error Invoking Method' and 'Failed to launch JVM' error with java program packaged as EXE
body: <p>First things first: <strong>This is not a duplicate of <a href="https://stackoverflow.com/questions/33285108/error-invoking-method-failed-to-launch-jvm">Error invoking method, failed to launch jvm</a> or <a href="https://stackoverflow.com/questions/33004035/javafx-application-fail-to-launch-with-native-exe-bundle">JavaFX application fail to launch with native exe bundle</a></strong>.</p>
  
  <p>I am using Inno Setup Compiler 5.5.9 to pack my program as a EXE installer. When I tried to launch the program, it says "Error invokign method" and then "Failed to launch JVM".</p>
  
  <blockquote>
    <p><img src="https://i.stack.imgur.com/MTxYL.png" alt="error">
    <img src="https://i.stack.imgur.com/RWsZ1.png" alt="failed"></p>
  </blockquote>
  
  <p>I know relatively little about Java. I have a book that I read about how to program in Java and that's it. I know you have posted about this in other posts but I don't understand what these posts are saying.</p>
  
  <p>Can someone explain how to fix these step by step please? I am running NetBeans 4.2 Update 2, Java JDK 1.8.0 172, Java SE 1.8.0 172 X86_64. I also have Java SE 1.8.0 151 X86</p>