Re: SET CLASSPATH



Abdelhalim MIMOUNI wrote:
hi, i'm using the abstract class definition, and when compiling the abstract
class  it's ok, but the problem is when compiling the subclass: i get the
following message:

Rect.java:9: cannot resolve symbol
symbol  : class GeoFigure
location: class figures.Rect
public class Rect extends GeoFigure
                          ^
1 error

the abstract class is called: GeoFigure;
and the subclass is Rect

so how cn use the set classpath at command line, should it include the
directory where are located all the package files(the abstract class and
subclass .java files), or should it point at onel evel before the directory
that contains the package files?
thank's!


Suppose you have the class com.foo.Bar. The file Bar.class lives in the /home/xyzzy/classes/com/foo directory. Set your classpath to include the /home/xyzzy/classes directory.


HTH,
Ray

--
XML is the programmer's duct tape.
.