Java package - class not found, same directory
<p>I have two Java classes "giveMyOb" and "dataConn" declared in the same directory. Both are public classes. "giveMyOb" has a static method "getMine()". Inside dataConn, I called the static method as </p>

<pre><code>giveMyOb.getMine();
</code></pre>

<p>When I try to compile dataConn.java, the following error is returned.</p>

<p>"Cannot find symbol</p>

<p>symbol: variable giveMyOb<br>
location : class dataConn<br>
                giveMyOb.getMine();  "</p>

<p>It used to work earlier. But is not working now. Why is that?</p>

<p>Additional Information: JDK 1.6. Windows 7. 64 bit.</p>

<p>Update(30 days after the question): When compiled from Eclipse, the classes are referenced and it works. But the same won't work when compiling from command line. I was unable to figure out the reason and nothing logical comes to my mind!</p>
