Be sure that you have logged into our course folder. To do this select the chooser from the apple menu. Select the zone Hubbard and Appleshare. Once you've done this choose the server "Elephant" and login (your password will start as "changeme" be sure to change it immediately). When using things from the course folder be sure to first copy them to the desktop. At the end of your session you can then save things back to your own folder.
When you write a Java program, you will need to first create a project and then create one or more files that contain the text of that program. These files are all kept in the project folder. After you complete the development of your program, there will be additional files inside the project folder.
(Once you have a project defined and saved, you can just double click on that project file to restart CodeWarrior; this step is only necessary the first time you use CodeWarrior).
In the menu bar, select the New. . . option under the File menu. This creates a dialog box like this:
As in the figure, you want to select the Java Application Wizard, and name your project Lab1 (or something equally clever). Now click ok. You should get a new window like this:
The important bit here is to type in the class name. In the example (true of your first program) the class name is "atinlay". The second important thing is to uncheck the "Create a frame on startup" box. Its not critical but it will simplify things for now. Finally, it might be helpful to get rid of the Package Name setting. You'll go through a couple of more similar windows. You'll want to name these "atinlay" as well. Eventually you'll get to the familiar project window. Before proceeding you need to make one change. Select "Lab1 Debug Settings" from the Edit menu and click on "Java MacOS Settings". You should get a dialogue box like this:
Where it says "Redirect stdin" be sure to select "Message Window" as in the example. This is crucial for any program which reads things in from the keyboard.
Now you're ready to roll on the project. As part of the project creation process a file will be created for you with some default code (in this case the file will be atinlay.java). You can open it by double clicking on its name in the project window. Now you're ready to start programming.