title: Why this javac: File Not Found error?
body: <p>Working with some basic java apps on CentOS 5 linux and I have my <code>classpath</code> set to point to <code>home/pathToJava/bin</code> which contains <code>javac</code> and <code>java</code></p>
  
  <p>and I have <code>.java</code> files in <code>home/pathToFolderA/src</code></p>
  
  <p>and <code>home/pathToFolderB/gen-java</code></p>
  
  <p>When I run <code>javac</code> and <code>java</code> in <code>home/pathToFolderA/src</code> everything works perfectly</p>
  
  <p>But when I run <code>javac</code> from within <code>home/pathToFolderB/gen-java</code> on <code>fileName.java</code> I get a file not found error, specifically</p>
  
  <pre><code>javac: file Not found: fileName.java
  Usage: javac &lt;options&gt; &lt;source files&gt;
  </code></pre>
  
  <p>Why could this be happening?</p>
  
  <p>Thanks for all help</p>