title: Make single file with7zip SFX with java jar
body: <p>Using this tutorial:
  <a href="http://mark.koli.ch/bundle-java-the-jre-and-launch-a-java-app-with-7zip-sfx" rel="nofollow">http://mark.koli.ch/bundle-java-the-jre-and-launch-a-java-app-with-7zip-sfx</a></p>
  
  <p>I'm trying to put the jre and my .jar together,to result of a single executable file, so the JRE will not be required to launch my application.</p>
  
  <p>I use Eclipse to export my project into an executable app.jar file. (file - export - jar, executable jar). Then, I zip the jre and app.jar together:</p>
  
  <pre><code>app.7z:
      - jre folder
      - app.jar
  </code></pre>
  
  <p>My app.tag contains this:</p>
  
  <pre><code>;!@Install@!UTF-8!
  Title="7ZIP Java Launcher Example"
  ExtractDialogText="Extracting ..."
  GUIFlags="32"
  ExtractTitle="Extracting"
  FinishMessage="Application stopped."
  RunProgram="jre\bin\javaw.exe -jar app.jar \"%%S\" \"%%T\""
  ;!@InstallEnd@!
  </code></pre>
  
  <p>Then, I put app.tag, app.7z and 7zSD.sfx into the same folder and use this command line:</p>
  
  <pre><code>C:\&gt; copy /b 7zSD.sfx + app.tag + app.7z start.exe
  </code></pre>
  
  <p>The file start.exe is created. When I open it, it says "extracting...", but will always launch "Application stopped".
  I have no clue why this happens. I checked into the TEMP of Windows folder, and everything is extracted correctly.</p>
  
  <p>Any idea what I am doing wrong?
  The .jar itself will open normally when I double-click on it.</p>
  
  <p>Thank you!</p>