All,
I seem to be having difficulty understanding packages.
The following is my classpath.;c:\test
I created a directory structure under c:\test as follows JTest\Utils. Inside that directory. I created the following .java file
package JTest.Utils;
public class One{}
Inside c:\Test, I created another .java file as follows
import JTest.Utils.*;
public class Two
{
public static void main(
String[] args)
{
One o = new One();
}
}
However when I compile Two.java I get a compiler error stating that One cannot be found.
Am I missing something here?