title: Java import from other directory
body: <p>I am building a Enterprise Service Bus (ESB) with Java. I won't get into 
  details But I have to build multiple servers who make use of the same classes. </p>
  
  <p>I have the following directory structure:</p>
  
  <pre>
  /server1
     -Main.java
  /server2
      -Main.java
  /com
      -Database.java
  </pre>
  
  <p>I want to import from the <code>Main.java</code> class for example the <code>Database.class</code>.
  But of course the following statements won't work:</p>
  
  <pre><code>import com.Database;
  </code></pre>
  
  <p>I am working with the javac compiler in the command line (so not eclipse stuff or whatever. just TextMate and the command line). And I found a (pretty stupid) solution by creating a symbolic link in the servers to the com directory. But that is not really an ideal solution. </p>
  
  <p>Does anybody have a better one?</p>