Every time I think I understand this, I find again that I don't.
SuperclassX.java and SubclassY.java are both in C:\Java. No problem compiling SuperclassX.java, however SubclassY.java won't compile.
C:\Java\SubclassY.java:4: cannot resolve symbol
symbol : class SuperclassX
location: class packageY.SubclassY
public class SubclassY extends SuperclassX
^
I have directory C:\Java\packageY and my classpath includes it. I've tried C:\Java\javac SubclassY.java
I've tried C:\Java\packageY\javac SubclassY.java
Well, I won't tell you what all I tried, but nothing works. What am I doing wrong?