Hi everyone. I'm trying to compile the following code in Java on my Mac:
import javabook.*;
class TestJava
{
public static void main (String[] args)
{
//declare the MainWindow and the MessageBox
MainWindow mainWindow;
MessageBox messageBox;
//Create the MainWindow and the MessageBox
mainWindow = new MainWindow ("TestJava");
messageBox = new MessageBox (mainWindow);
//display MainWindow and the MessageBox
mainWindow.setVisible (true);
messageBox.show ("Your Java development environment has been setup successfully. ");
}
}
I've put a folder called "javabook" (no quotes) in my /Library/Java/Extensions folder, but to no avail (NoClassDefFound error). Can anybody help me? I guess I need to know where to put my .class files. Thanks!
turboSPE