Cocoon Web Application wizard

This is a feature of JBuilder Professional and Enterprise.

The Cocoon Web Application wizard creates a Cocoon node containing several files and adds them to the existing project.

To open the Cocoon Web Application wizard, choose File|New to display the object gallery, click the XML tab, and double-click the Cocoon Web Application icon.

Choose the Cocoon base and configure libraries as follows:

Cocoon Base

The path to the Cocoon directory. Cocoon is bundled with JBuilder. The default Cocoon base is <jbuilder>/cocoon/, where <jbuilder> represents the full path to the JBuilder directory, for example, C:\jbuilder6. This default path is automatically filled in for you.

Class page

Displays the path or paths that Cocoon searches for class files. Files can be zipped into a ZIP or JAR file.

Paths are searched in the order listed. To switch the order of paths, use the Move Up and Move Down buttons. Choose the Add, Edit, or Remove buttons to change paths.

Source page

Displays the path or paths that Cocoon searches for source files. Files can be zipped into a ZIP or JAR file.

Paths are searched in the order listed. To switch the order of paths, use the Move Up and Move Down buttons. Choose the Add, Edit, or Remove buttons to change paths.

Documentation page

Displays the path or paths that contain the HTML documentation files for Cocoon. This allows reference documentation to be displayed in the doc pane. The default is <jbuilder>/cocoon/doc/, where <jbuilder> represents the full path to the JBuilder directory, for example, C:\jbuilder6. This default path is automatically filled in for you.

Paths are searched in the order listed. To switch the order of paths, use the Move Up and Move Down buttons. Choose the Add, Edit, or Remove buttons to change paths.

Required Libraries page

The libraries to use when compiling.

Libraries are searched in the order listed. To switch the order of libraries, use the Move Up and Move Down button. Choose the Add, Edit, or Remove buttons to change the libraries in the list.

Library names in the list are in one of three colors: Black, Red, and Gray. The color use is explained in the following table.

Library name colors in library lists

Color Description Troubleshooting
Black The library is defined correctly.  
Red The library definition is missing. This typically means the project refers to a library that is not yet defined. It can also mean the library has been defined without any paths.
Gray Use of this library requires an upgrade. You need to upgrade your edition of JBuilder in order to use this library. For example, if you have JBuilder Personal, use of the dbSwing library requires that you upgrade to either JBuilder Professional or Enterprise.

Add

If the Class, Source, or Documentation tab is selected, the Add button displays the Select Directory dialog box where you choose the new path for the class, source, or documentation file you want to add.

If the Required Libraries tab is selected, the Select A New Library dialog box is displayed, where you select the library to add.

Edit

If the Class, Source, or Documentation tab is selected, the Edit button displays the Select Directory dialog box where you edit the existing class, source, or documentation path.

If the Required Libraries tab is selected when you click Edit, the Select A Different Library dialog box is displayed.

Remove

Deletes the selected path or library.

Move Up

Moves the selected path or library up in the list.

Move Down

Moves the selected path or library down in the list.

Generate WAR

Generates a Web archive file.