pls help screwy problem with this code

Im pretty new to java, and I'm trying to make a MASH program to practice. I cant figure out this error, as it checks out with some examples from a book. Please help!

When compiling in the command prompt, this is what the errors are:

cannot resolve symbol

symbol: class MashBuild

location: class MashEvent

MashBuild gui;

^

cannot resolve symbol

symbol: class MashBuild

location: class MashEvent

public MashEvent(MashBuild in) {

^

Here is the code for MashEvent.java-- I also have a class called MashBuild that has the code for the display of the program and all of the JButtons, etc. so I dont see why this shouldn't work

import javax.swing.*;

import java.awt.event.*;

publicclass MashEventimplements ActionListener, Runnable{

MashBuild gui;

Thread playing;

public MashEvent(MashBuild in){

gui = in;

}

publicvoid actionPerformed(ActionEvent event){

String command = event.getActionCommand();

if (command =="Play")

startPlaying();

if (command =="Reset")

clearAllFields();

}

void startPlaying(){

playing =new Thread(this);

playing.start();

gui.play.setEnabled(false);

gui.reset.setEnabled(true);

}

void clearAllFields(){

for (int i = 0; i < 10; i++){

gui.houses[i].setText(null);

gui.cars[i].setText(null);

gui.people[i].setText(null);

gui.kids[i].setText(null);

}

gui.houseTR.setText(null);

gui.carTR.setText(null);

gui.peopleTR.setText(null);

gui.kidTR.setText(null);

}

publicvoid run(){

Thread thisThread = Thread.currentThread();

while (playing == thisThread){

int choice;

choice = (int)Math.floor(Math.random() * 10);

if (choice != 40){

gui.houseTR.setText(gui.houses[0].value);

gui.carTR.setText(gui.cars[0].value);

gui.peopleTR.setText(gui.people[0].value);

gui.kidTR.setText(gui.kids[0].value);

}

try{

Thread.sleep(100);

}catch(InterruptedException e){}

}

}

}

[3917 byte] By [patg004a] at [2007-9-30 2:25:02]
# 1
Is MashBuild.java file in the same folder as MashEvent.java file?Or at least is the folder where MashBuild.java is located pointed by the class path?
jfbrierea at 2007-7-16 13:34:47 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 2
Is there a class called MashBuild ?I.E. MashBuild.java and MashBuild.class - MaxxDmg... - ' He who never sleeps... '
MaxxDmga at 2007-7-16 13:34:47 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 3
Suppose MashEvent.java is in 'folder1' folder and MashBuild.java is is 'folder2' folder, you could do:At the console, from the 'folder1' folder:javac -classpath folder2 MashEvent.java
jfbrierea at 2007-7-16 13:34:47 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 4
Or more precisely, did you compile MashBuild.java into MashBuild.class...It's one of the errors I run into when I forget to compile one of the classes that another class calls...- MaxxDmg...- ' He who never sleeps... '
MaxxDmga at 2007-7-16 13:34:47 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 5
thanks, that thing with -classpath worked and I was able to compile it.
patg004a at 2007-7-16 13:34:47 > top of Java-index,Archived Forums,New To Java Technology Archive...