I have been trying like crazy to compile a simple two file java program on a 5600. One file calls a class defined in the other. The non dependent java file compiles withou problems but the other is a pain and won't work. I think I have everything set up ande called correctly, but it chokes using both the kopi and jikes compiler. Here is the code:
sample.java
class Sample{
public static void main(String[] arguments){
int height;
int width;
int depth;
}
}
usesample.java
class UseSample {
public static void main(String[] arguments) {
Sample sampling = new Sample();
sampling.height = 72;
sampling.weight = 1000;
sampling.depth = 420;
System.out.println("Height: " + sampling.height);
System.out.println("Weight: " + sampling.weight);
System.out.println("Depth: " + sampling.depth);
}
}
Any help would be appreciated.
Also, I do realize that programming on the Zaurus isn't ideal, but it is fun and allows me to learn during meetings, bus rides, and car trips.
thanks