Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2005

Tip: Looking for answers? Try searching our database.

SET CLASSPATH

Thread view: 
Abdelhalim MIMOUNI - 16 Jun 2005 18:45 GMT
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!

Signature

SAID BARA

Raymond DeCampo - 17 Jun 2005 02:58 GMT
> 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
[quoted text clipped - 15 lines]
> 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.
Abdelhalim MIMOUNI - 17 Jun 2005 19:47 GMT
thank's, nut know that i'm alwas gettin the same error message, know that
i'm trying to use the classpath instruction in console mode, as i'm using
SUN JDK, i compile and run my programs using this method!
so, i want to give the path to the compiler after compiling the main
class(abstract class) when compilng the subcalss that extends the abstract
one, but in console mode, i don't want to inclde it in the environnement
var!
i'm trying o use this difinition:
SET CLASPATH=.;[driveletter]\[Directoy1]\[Directoy2]\[Directoy]\[Directoy4]
and know that the Directoy5 conatins the abstract class defifniton(.java
file), and sure they have to be all iln the same directiory (directiory5)
thank's!
Signature

AbdelHalim MIMOUNI

> > 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
[quoted text clipped - 25 lines]
> --
> XML is the programmer's duct tape.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.