title: Java eclipse directory structure and tomcat
body: <p>I have a java application hosted on tomcat, which has a directory structure like : </p>
  
  <blockquote>
    <p>webapps/my_aapp/WEB-INF/CLASSES/SERVLETS/xyz.java</p>
    
    <p>webapps/my_aapp/WEB-INF/CLASSES/SERVLETS/xyz.class</p>
  </blockquote>
  
  <p>so that's how classes are referenced . </p>
  
  <p>Now (I am new to eclipse), it generates a different directory strucutre, in which all <code>.java</code> files are outside the code and I don't know where class files are stored.</p>
  
  <p>The result is that when I upload the files, and compile, I get errors like this: </p>
  
  <blockquote>
    <p>javac -Xlint servlets/Ajax.java</p>
    
    <p>warning: [path] bad path element "/usr/java/jdbc7.2dev-1.2.jar": no
    such file or directory</p>
    
    <p>warning: [path] bad path element
    "/usr/java/mysql-connector-java-3.0.16-ga-bin.jar": no such</p>
  </blockquote>
  
  <p>What's the best way to understand this java directory path issue? Better yet, how to synchronize this structure? </p>
  
  <p>I want to keep my eclipse directory structure on tomcat.</p>