Using a Modular Approach: Setting Up for This Lesson


If you are continuing from the previous lesson, all you need to do to prepare for this lesson is to:

  1. Copy the original sesame.db over test.db.
    This returns the database to a clean state, without the records added by recent test runs.

  2. In the JavaStar main screen, click on the Mapping tab of Project Settings.
    The mapping options panel moves to the forefront..

  3. Enter the declaration filenames into the Declaration classes field.
    If you are working in a Windows environment, use a semi-colon as a delimeter between filenames. For a UNIX environment, use a colon.
    On Windows 95, for this example, you enter:

  4. In the Declaration classpath field, type the path to the declaration files.
    For example, if you are running under Windows and you used the default setup for the JavaStar installation, you would enter a path of:

    Note - Because NameData is a package, do not point directly to the NameData directory--if you do, JavaStar will try to find a NameData package within the NameData directory, and will return compile errors for your scripts.

  5. Click the Save button to save changes.
    JavaStar will now provide your list of declaration files into the Record with map files field by default, so you don't have to enter it every time you record a new script.

If you have not done the previous lessons:

  1. If you have not already done so, follow the instructions for Setting up JavaStar as described in the chapter "Generating Declarations."

  2. If you did not do the lesson in chapter Generating Declarations, then:

    1. Create a directory within the tutorial directory called NameData.

    2. Copy the contents of the \javastar\tutorial\NameDataDecls into \javastar\tutorial\NameData.

  3. Copy the contents of the \javastar\tutorial\declarations directory to \javastar\tutorial.



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