posted 16 years ago
The directory structure is :
a
B.java
xcom
A.java,A.class
This is a file in package xcom.
This is a file in a directory named a.
Now B needs A.class for its compilation. Since A is in xcom package, it is xcom.A
So I made the current directory as a and javac -cp . B.java. But this dosent work ??? But when I use the import in class B it works fine. Isnt it one and the same?