title: What does the "Failed to launch JVM" error mean when executing an .exe made with jpackage?
body: <p>I have a program which I have compiled into a runnable jar using the Eclipse IDE, and turned into a .exe file using jpackage.</p>
  <p>However, the resulting file will not run successfully. It seemingly executes the first line of the code (which creates a .txt file for logging), and then throws the error &quot;Failed to launch JVM&quot;.</p>
  <p>I've tried looking into the manifest file for the program and making sure that the -main-class variable is correct in my jpackage command, but I can't see where the problem lies.</p>
  <p>Here is my jpackage command:</p>
  <pre><code>jpackage -i &quot;C:\Users\User\Documents\myprogram\jar&quot; -n &quot;myprogram&quot; --main-class uk.co.myname.myprogram.MyProgram --main-jar &quot;myprogram.jar&quot; -d &quot;C:\Users\User\Documents\myprogram\exe&quot; --icon &quot;C:\Users\User\Documents\myprogram\app icons\My Icon.ico&quot;
  </code></pre>
  <p>Does anyone know what could be causing this error?</p>