Creating a Standalone Program Project
You can create a standalone program in any portfolio for which you have write permission. When you create a standalone program project, you must enter a project name and source directory. The Java WorkShop supplies default values for all other project attributes.
To create a standalone program:
- Check the WorkShop tool bar for the name of the current portfolio.
If it is not the portfolio in which you want to create the project, choose Portfolio => Choose and select another portfolio name.
- Choose Project => Create => Standalone Program.
- In the Project Name field, enter the name of the project.
Make sure you are consistent in the use of capitalization in project and file names (even if you are working on Windows NT or Windows 95, where file names are not case-sensitive). The Java WorkShop is case-sensitive.
- In the Source Directory field, enter the path name of the directory where you want to store the project.
If the directory does not exist, the WorkShop will create it. You should store a project in its own directory.
- If sources do not exist for the standalone program:
- Click the No radio button in the Existing Sources field.
- Click either the Visual Java or Source Editor radio button in the Create Using field.
- If source files exist:
- Click the Yes radio button in the Existing Sources field.
- Click either the Add All in Directory or Add Selected button to list the source file names in the Sources list.
- Type the name of the class file in which main is defined (for example, Blink.class) in the Main Class File field.
- Click Apply.
The Java WorkShop creates the project .prj file using the name, source filenames, and other information you supplied and stores it in the directory you specified. The project name is added to the Project => Choose, Edit, Remove, Run, and Copy submenus.
If you are creating a new source file, either Visual Java or the Source Editor opens. If you are using existing source files, the Portfolio Manager opens with your project selected.
You can change the project's default attribute values using the Project Manager. These attributes define the project's individual characteristics such as how it appears in the portfolio. For a listing of all project attributes, see Editing Project Attributes.
See also:
- Creating an Applet Project
- Creating a Java Package Project
- Creating an Image Project
- Creating a Remote Applet Project
- Standalone Program Tab