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:
- Copy the original
sesame.db
over test.db
.
This returns the database to a clean state, without the records added by recent test runs.
- In the JavaStar main screen, click on the Mapping tab of Project Settings.
The mapping options panel moves to the forefront..
- 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:
NameData.MainWin;NameData.NamesWin;NameData.SearchWin
- 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:
c:\suntest\javastar\tutorial
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.
- 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:
- If you have not already done so, follow the instructions for Setting up JavaStar as described in the chapter "Generating Declarations."
- If you did not do the lesson in chapter Generating Declarations, then:
- Create a directory within the
tutorial
directory called NameData
.
- Copy the contents of the
\javastar\tutorial\NameDataDecls
into \javastar\tutorial\NameData
.
- 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.