title: IntelliJ IDEA add library to Tomcat
body: <p>I'd like to add some libraries that would be loaded before my WebApp, something like adding the Jar to <code>CATALINA_HOME\lib</code>. How can I do that?</p>
  
  <p>Equivalent in Eclipse: </p>
  
  <blockquote>
    <p>Servers->Tomcat v6.0->Open Launch configuration->Classpath->User
    Entries</p>
  </blockquote>
  
  <p>The problem I'm tryint to solve is that I need to include a library that contains javax.servlet.Servlet and that one cannot be loaded if not in the Tomcat system classpath. Error log: </p>
  
  <blockquote>
    <p>INFO: validateJarFile([...]\WEB-INF\lib[...].jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class</p>
  </blockquote>