Re: extends "cannot be resolved to a type"



Oliver Wong wrote:
The error is saying that it cannot find this "HelloDate" class that you are referring to.

Did you try compiling the files while ensuring that the current directory be ~ben/docs/comp/lang/java/ ? Did you ensure that "." (the current directory) is part of the CLASSPATH environment variable?

Yes to the former, no to the latter. Adding "." to the CLASSPATH environment variable fixes my problem on the Linux box.

My main system has no CLASSPATH environment variable. Since it has no problem, I guess its Java has a built-in class path with "."

Thanks for the help,

Ben
.