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]

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();
^
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();
^