Compiling Java using command line JAVAC
<p>I'm kinda new to compiling using cmd line javac and I'm having trouble compiling this simple Base-Interface class</p>

<pre><code>package com.apress.prospring2.ch03.di;

/**
 * @author janm
 */
public interface Encyclopedia {

    Long findLong(String entry);

}
</code></pre>

<hr>

<pre><code>package com.apress.prospring2.ch03.di;

import java.util.Map;
import java.util.HashMap;

/**
 * @author janm
 */
public class HardcodedEncyclopedia implements Encyclopedia {
    private Map&lt;String, Long&gt; entryValues = new HashMap&lt;String, Long&gt;();

    public HardcodedEncyclopedia() {
        this.entryValues.put("AgeOfUniverse", 13700000000L);
        this.entryValues.put("ConstantOfLife", 326190476L);
    }

    public Long findLong(String entry) {
        return this.entryValues.get(entry);
    }
}
</code></pre>

<p>I can easily compile Encyclopedia using javac Encyclopedia.java but when I try to compile HardcodedEncyclopedia .java I get</p>

<pre><code>HardcodedEncyclopedia.java:9: cannot find symbol
symbol: class Encyclopedia
public class HardcodedEncyclopedia implements Encyclopedia {
                                              ^
1 error
</code></pre>

<p>Can someone please tell me how to solve this without using Ant or Maven? Thanks :)</p>
