CS111 and Symantec Cafe
Symantec Cafe is the program we will be using to edit and compile our Java programs.
Java programs are written in files which end in .java. Symantec Cafe requires
Java programs to be organized into projects. For CS111, we will create the
project files for you. You will be able to identify the project files by the .proj
extension and the Symantec Cafe project file icon shown below.
Using Symantec Cafe
- Open up the folder where your files are. Find the Symantec Cafe project file
and double-click it to open it up. Do NOT open (by double-clicking)
the .java files directly!
- The keyservered message pops up. Click "OK". Please remember to quit Symantec
Cafe when you are done so that others may use it.
- The project file window appears. You must keep this window open while
working on your programs. Double-clicking the top border of the window toggles
the window between a minimized and full-size view.
- Double-click on the name of the file to open it. You can then edit the file.
You can tell that a file has been changed by looking at the project file window.
A check mark appears after files which need to be brought up to date.
- Be sure to save your files often! (Apple-S)
- In order to see your changes, you will need to bring the project up to date.
Note that if you are unable to bring your project up to date because the option
has been grayed out (right picture), that means you have closed your project file
window. You should then close all your Symantec Cafe windows and open the project
by double-clicking on the project file again.
- If there is a mistake in your code, Symantec Cafe will pop up an error window.
You must fix all errors before your code can be brought up to date. Double-click
on the first error to find out where it is in your code. If the error doesn't make
sense, you can try to bring it up to date again and see if that helps.
- When you double-click on an error, Symantec Cafe finds the error in your code and
highlights the error. It is a good idea to just fix one error at a time and then
try to build your code again.
- After successfully bringing your code up to date, reload it in the
AppletViewer.
- When you are finished, please don't forget to quit Symantec Cafe! (Apple-Q)