Hi,
I have 2 classes in a package. One class inherits from the other. I
had no problems compiling the classes when the classes weren't in a
package, but as soon as I put the classes in a package and appropriate
directories, I get the error :
cannot resolve symbol
symbol : class Base
My code, each class is in a different file in the same directory :
in directory first\second :
Base.java :
package first.second;
public class Base {
};
A.java :
package first.second;
public class A extends Base {
};
Can anyone see what I'm doing wrong?
Thanks,
Gil
I have 2 classes in a package. One class inherits from the other. I
had no problems compiling the classes when the classes weren't in a
package, but as soon as I put the classes in a package and appropriate
directories, I get the error :
cannot resolve symbol
symbol : class Base
My code, each class is in a different file in the same directory :
in directory first\second :
Base.java :
package first.second;
public class Base {
};
A.java :
package first.second;
public class A extends Base {
};
Can anyone see what I'm doing wrong?
Thanks,
Gil
Comment