title: Creating a WAR file using Java
body: <p>How do I create a deployable WAR file for Apache Tomcat servers <strong>programmatically with Java</strong>?</p>
  
  <p>Is there a library for such a task?</p>
  
  <p>I am working on a small own IDE for special purposes. The IDE is written in Java and JavaScript, so I need to create the WAR file using those.</p>