Compiling under console

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?

[579 byte] By [maaciekza] at [2007-10-2 13:23:07]
# 1
I think you need to post the full, exact error message.
atmguya at 2007-7-13 11:00:38 > top of Java-index,Developer Tools,Java Compiler...
# 2

PakietD.java:4:cannot find symbol

Here is error comunicat which I got when I tried compile PakietD.java

symbol: class PakietC

location:class B.C. PakietD

pakietC = x new PakietC();

^

PakietD.java:4:cannot find symbol

symbol: class PakietC

location:class B.C. PakietD

pakietC = x new PakietC();

^

maaciekza at 2007-7-13 11:00:38 > top of Java-index,Developer Tools,Java Compiler...
# 3

I made mistake in error comunicat, it was supossed to be like that:

symbol: class PakietC

location:class B.C. PakietD

PakietC = x new PakietC();

^

PakietD.java:4:cannot find symbol

symbol: class PakietC

location:class B.C. PakietD

PakietC = x new PakietC();

^

maaciekza at 2007-7-13 11:00:38 > top of Java-index,Developer Tools,Java Compiler...
# 4
Compile them at the same time, with the same invocation of the compiler:javac PakietD.java PakietC.java
BIJ001a at 2007-7-13 11:00:38 > top of Java-index,Developer Tools,Java Compiler...