title: Java: embedding jar inside exe
body: <p>Here is example to show what i mean: <a href="http://www.minecraft.net/download.jsp" rel="nofollow">http://www.minecraft.net/download.jsp</a>
  If you open the Minecraft.exe with winrar you can see the jar manifest and classes and you can actually launch the jar like this <code>java -jar Minecraft.exe</code></p>
  
  <p>But when i tried to embed my jar to my own exe as resource (i can see the classes same way as in minecraft.exe with winrar) and launch it with java -jar it fails with message</p>
  
  <pre><code>invalid or corrupt jar file
  </code></pre>
  
  <p>How can i embed the jar to exe correctly? so it can be launched same way as minecraft.exe?</p>