title: How to include dependency classes in my eclipse(juno) project?
body: <p>I have kept all my jar files inside <code>Web-content/WEB-INF/lib</code> and build into <code>Java-Resources/Libraries</code>. My project has been working fine for last 2 weeks, however, suddenly today all the dependencies are throwing <code>ClassNotFoundException</code>. Please help.</p>
  
  <p>I also tried keeping all the jars in another folder and adding them using Java <em>Build Path > libraries</em>. </p>
  
  <p>Strangely, all the jars are added under <strong>libraries</strong> and everything was working fine till yesterday!!</p>
  
  <p>Edit: I made two copies of the jars in WEB-INF/lib (simple copy-paste), and again added them (the new copy) using Build Path (So, now there are two instances of each). This fixed the problem. 
  Any views on why this happened?</p>
  
  <p>Edit 2: My classpath file : (Multiple copy of jar files and the 'dependency' folder were created when I was trying different things to solve my problem)</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;classpath&gt;
      &lt;classpathentry kind="src" path="src"/&gt;
      &lt;classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_45"&gt;
          &lt;attributes&gt;
              &lt;attribute name="owner.project.facets" value="java"/&gt;
          &lt;/attributes&gt;
      &lt;/classpathentry&gt;
      &lt;classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0"&gt;
          &lt;attributes&gt;
              &lt;attribute name="owner.project.facets" value="jst.web"/&gt;
          &lt;/attributes&gt;
      &lt;/classpathentry&gt;
      &lt;classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/&gt;
      &lt;classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/&gt;
  
      &lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/jstl-1.2.jar"/&gt;
  
      &lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-codec-1.9.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/poi-ooxml-3.13-20150929.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/poi-ooxml-schemas-3.13-20150929.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/xmlbeans-2.6.0.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-logging-1.1.3.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/junit-4.12.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/log4j-1.2.17.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/poi-excelant-3.13-20150929.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/poi-scratchpad-3.13-20150929.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-fileupload-1.3.1.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/commons-io-2.4.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/dependecies/commons-codec-1.9.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/dependecies/commons-fileupload-1.3.1.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/dependecies/commons-io-2.4.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/dependecies/commons-logging-1.1.3.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/dependecies/jstl-1.2.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/dependecies/junit-4.12.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/dependecies/log4j-1.2.17.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/dependecies/poi-excelant-3.13-20150929.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/dependecies/poi-ooxml-3.13-20150929.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/dependecies/poi-ooxml-schemas-3.13-20150929.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/dependecies/poi-scratchpad-3.13-20150929.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/dependecies/xmlbeans-2.6.0.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/mysql-connector-java.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/mysql-connector-java-5.1.13-bin.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/Copy of jstl-1.2.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/poi-3.13-20150929.jar"/&gt;
      &lt;classpathentry kind="lib" path="WebContent/WEB-INF/lib/Copy of poi-3.13-20150929.jar"/&gt;
      &lt;classpathentry kind="output" path="build/classes"/&gt;
  &lt;/classpath&gt;
  </code></pre>