Prepare for the Debugging Tasks

Compile and Run an Applet Tutorial Contents Tour of Cosmo Code

To set up for the debugging tutorial, you need to use a version of QuickMenu.java that contains errors to correct: QuickMenu.tutorial. You are going to rename the QuickMenu.java file to QuickMenu.fixed, and rename QuickMenu.tutorial, which contains errors for you to debug, to QuickMenu.java.

  1. In a shell window in the QuickMenu directory, type:
    mv QuickMenu.java QuickMenu.fixed
    
    
  2. In the same shell window, type:
    mv QuickMenu.tutorial QuickMenu.java
    
    

    You also need to removed the compiled Java files to ensure that Cosmo Code recompiles the new version of QuickMenu.java.

  3. In the shell window, type:
    rm *.class
    

    Now you are ready to start Cosmo Code, and compile, run, and debug the QuickMenu applet.

Compile and Run an Applet Tutorial Contents Tour of Cosmo Code

Guide to the Cosmo Code Development Environment
12-96*162