//the super classe
package myPackage;
public class firstClass
{
//class data
int dataField_One;
int dataField_Two;
public firstClass ()
{
//constructor declaration
}
} //end firstClass
---------------------------------------------
package myPackage;
import java.awt.*;
public class DrawClass extends firstClass
{
//class data
//private declaration
//methods
//constructors
public DrawClass()// constructor
{
//constructor declaration
}
//other declarations
} //end DrawClass
----------------------------------------------
my directory files located in the directory named as the package name is:
myPackage.
The files are: firstClass.java(the super classe) and DrawClass.java
And my command line command is a follow:
D:\DOCUME~1\MASTERPOINT\My Documents\Cours\Java\Pers
Teach\Prope_Obj\myPackage>set CLASSPATH=.;D:\DOCUME~1\MASTERPOINT\My
Documents\Cours\Java\Pers Teach\Prope_Obj\myPackage;
DrawaRect.java:10: cannot resolve symbol
symbol : class firstClass
location: class figure.DrawaClass
public class DrawaClass extends firstClass
^
DrawaRect.java:70: cannot resolve symbol
symbol : variable width
location: class myPackage.DrawaClass
02 errors
--
AbdelHalim MIMOUNI
"Raymond DeCampo" <no****@twcny.rr.com> a écrit dans le message de news:
T0******************@twister.nyroc.rr.com...
Abdelhalim MIMOUNI wrote: hi, i'm new to java, and using sun last JDK, and i'm trying to
understand how work this feature when we want to compile at command line ? i'm
trying to set the classpath to the directory of the package but still always
not working!
thank's.
The best way to get an answer to your question is to post everything you
can. Post the exact command line you are using, the output from it.
Post your directory structure, and which files exist where. In your
case, post the package declaration of your java source files as well.
Ray
--
XML is the programmer's duct tape.