Re: extends "cannot be resolved to a type"



Lew wrote:

Oliver Wong wrote:
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?

Ben Collver wrote:
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 "."

Java has no "built-in class path", but your Windows box might.

"Linux" box...

There is a built-in class path, or at least a default which amounts to the same
thing:

Standard Options
-classpath classpath
Sets the user class path, overriding the user class path in the
CLASSPATH environment variable. If neither CLASSPATH or
-classpath is specified, the user class path consists of the
current directory.

--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@xxxxxxxxxxxx
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
.