title: How to create a runnable jar file from source code programmatically?
body: <p>I need to create  runnable <code>.jar</code> file programmatically from a string. My decision is to create a <code>.class</code> file from string and add it to the <code>.jar</code> using JarOutputStream.</p>
  
  <ol>
  <li>What API must I use to create the <code>.class</code> file?</li>
  <li>Are there any other solutions to create a <code>.jar</code> from the source code?</li>
  </ol>