title: -sourcepath vs -classpath
body: <p>Studying for the oracle certification I am trying all the possible scenarios that might occur during the exam.
  For example, here there is a little doubt about shell command line (unix based):</p>
  
  <p>Let's imagine there is a folder called <code>myProject</code> and a sub folder called <code>myProject/source.</code></p>
  
  <p>File <code>SubFile.java</code> is in the folder <code>myProject/source</code> and another file <code>File.java</code> is in <code>myProject</code> folder.</p>
  
  <p>By typing the following commands I get to different behaviors:</p>
  
  <p><code>cd source</code> (therefore, currently I am on "myProject/source")</p>
  
  <p><code>javac -sourcepath ../ File.java</code><br>
   // The command ../ does not work to access "Folder"
  then after compiling <code>File.java</code> from <code>myProject</code> folder and returning to the sub Folder if I try:</p>
  
  <p><code>javac -classpath ../ SubFile.java</code></p>
  
  <p>// with the flag <code>-classpath</code> it seems to accept the <code>../</code> syntax to access the <code>super</code> folder.</p>
  
  <p>Do you know why it works like this? and moreover is there any chance to access the <code>super</code> folder  with the <code>-sourcepath</code> flag?</p>