title: how to create ear file, and include war and jar files inside that
body: <p>I am trying to create an EAR file from the command prompt. I have used </p>
  
  <pre><code>jar -cvf myServletWAR.ear . 
  </code></pre>
  
  <p>But my question is, how can I get this EAR file to have WAR files and JAR files inside it?</p>
  
  <p>Do I need to create the war file separately and include in the ear file?</p>
  
  <p>I can't use the ANT file for this, as there are few restrictions on this project.</p>