title: Java Command Line Compilation Problems and Dependecies
body: <p>I have the following class structure:</p>
  
  <pre><code>Main Class: WordNet.java
  WordNet.java uses SAP.java
  SAP.java uses DeluxeBFS.java
  </code></pre>
  
  <p>When I run the command</p>
  
  <pre><code>$ javac WordNet.java
  </code></pre>
  
  <p>I get back</p>
  
  <pre><code>WordNet.class
  WordNet$Synset.class
  SAP.class
  DeluxeBFS.class
  DeluxeBFS$markDist.class
  </code></pre>
  
  <p>Synset and markDist are private classes.</p>
  
  <p>What I don't understand though, is why if I make a change in DeluxeBFS, and recompile WordNet, that change is not compiled in. Since WordNet depends on DeluxeBFS, shouldn't the java compiler recompile it if a change is made? It seems like the file is not even touched.</p>