SCJP Sun Certified Programmer for Java 6 Study Guide (Exam 310-065) example from chapter 10 Development "-classpath"
<p>Given the default classpath:</p>

<pre><code>/foo
</code></pre>

<p>And this directory structure:</p>

<pre><code>foo
  |
 test
    |
   xcom
     |--A.class
     |--B.java
</code></pre>

<p>And these two files:</p>

<pre><code>package xcom;
public class A { }

package xcom;
public class B extends A { }
</code></pre>

<p>Why it doesn't work?</p>

<pre><code>javac -cp test xcom\A.java
</code></pre>
