Here is my code
package com.a;
public class A{}
I compiled using
javac -d . A.java
I gets compiled in com/a/A.claas
Now I created another class
package com.b;
import com.a.A;
class B extends A{}
compiled it with javac -d . B.java
and throwing error
B.java:2: error: cannot find symbol
import com.a.A;
^
symbol: class A
location: package com.a
B.java:3: error: cannot find symbol
class B extends A{}
^
symbol: class A
2 errors
Can anybody help?