Java Package Tab

Use the Java Package tab to create a Java package project either by using existing sources or by creating new sources. The Java WorkShop creates the Java package project in the source directory you specify and adds its image to the current portfolio.

Project Name
The name of the project. You do not need to include the extension .prj. 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.

Package Name
The name of the Java package.

Root Directory
The path name to the root directory of the class hierarchy. For example, entering mydir causes the .class files for the classes in the java source file to be saved in the directory mydir. This field is equivalent to the -d option to the javac command.

Source Directory
The path name of the directory where you want to store the .prj file, source files, and other project files. For clarity, you should store a project in its own directory.

Existing Sources
Field that controls whether or not the Java WorkShop uses existing source files for your project. If sources exist for the project, click the Yes radio button. You will be required to fill in the Sources field.

Sources
If you set the Existing Sources field to Yes, you must add the names of the source files to the Sources list. Clicking the Add All in Directory button adds all .java files in the source directory to the list. Clicking the Add Selected button opens a file chooser in which you can select the .java files you want to add. If you make a mistake, you can delete a file by selecting its name in the Sources list and clicking the Delete button. Or, use the Delete All button to delete all files.

Command buttons
Apply--Creates the project <.prj file using the name, source filenames, and other information you supplied and stores it in the specified directory

Help--Displays help for the Java Package tab


See also:

Creating a Java Package Project