Compiling under consol

I would like to complie a program.

package B.C;

class PakietD{

public static void main(String arg[]){

PakietC x = new PakietC();

x.pokaz();

}

}

and

package B.C;

class PakietC{

String pakietC="pakietC";

public void pokaz(){

System.out.println("Komunikat z pak C");

}

}

It is ok when I use a Eclipse or JCreator, but when I compile under console, it is error that there is no access to PakietC. This two programs are in the same folder. How should I compile this?

[580 byte] By [maaciekza] at [2007-10-2 13:23:06]
# 1
Please do not multi-post. http://forum.java.sun.com/thread.jspa?threadID=712187&messageID=4119953#4119953
BIJ001a at 2007-7-13 11:00:37 > top of Java-index,Archived Forums,Debugging Tools and Techniques...