title: java relative path vs absolute path on command line
body: <p>Running into an interesting problem
  When I run:</p>
  
  <pre><code>$cd /projects/MyProject/
  $java -cp . S3Sample
  </code></pre>
  
  <p>This works fine.  However if I run:</p>
  
  <pre><code>$java -cp /projects/MyProject /projects/MyProject/S3Sample
  Error: Could not find or load main class .projects.MyProject.S3Sample
  </code></pre>
  
  <p>Why is that.  Did a quick look and can't find the answer.  Thanks!</p>