Generating Declarations: Setting Up for this Lesson


For this lesson, you're going to start with a different version of the Name Database application. If you look in the examples subdirectory of the javastar directory, you'll see that there are three name database directories: namedb1, namedb2, and namedb3.

Up to this point, you've worked with namedb1. This version corresponds to an initial development version. The namedb2 version represents a development update to namedb1, with GUI modifications. The tutorial doesn't address namedb3.

  1. Copy the original sesame.db over test.db.

  2. If you did not do the exercises in the chapter "Getting Started with JavaStar", or if you no longer have these tests in the your directory, copy the contents of \tutorial\gettingStarted to \tutorial.

  3. Launch JavaStar.
    The JavaStar main screen opens, loading the last project file you used. If this is not namedb.prj, the file you created in the chapter "Getting Started with JavaStar," open namedb.prj before continuing.

  4. Create a project file for the namedb2 application.
    You can do this by modifying the namedb.prj file:

    1. Click the App tab to bring the panel forward.

    2. Delete the contents of the Classpath field.
      This prevents JavaStar from appending a classpath to the existing one when you select a new application.

    3. Click the Browse button for the Class field.

    4. In the file dialog, navigate to the \javastar\examples\namedb2 directory and double-click the namedb.class file.

    5. From the buttons that appear along the bottom of the screen, choose Save As....

    6. Save the file as namedb2.prj.



Send feedback to JavaStar-feedback@suntest.com
Copyright © 1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, CA 94303. All rights reserved.