## About Project Templates

See Also

Project templates come in two types:

- Templates that users build on when creating their own project. For example, in the IDE a user chooses the 'Web Application' project template in the New Project wizard, then the IDE creates a project consisting of a JSP file, a `web.xml` file, a server-specific deployment file, and project metadata within a specific structure that is useful for web application projects.

  For an example of creating a module that registers a new project template, see the

- Samples that illustrate some aspect of project functionality. For example, in the Samples directory within the New Project wizard, an Anagram Game is included to demonstrate J2SE functionality. Samples are a kind of project template; they have the same behavior as project templates, but they are used for a different purpose.

  For an example of creating a module that registers a new project sample, see the

A project template is made available to the IDE's New Project wizard once it has been registered in the `layer.xml` file. You use the New Project Template wizard to create the basic files and to register the template in the `layer.xml` file.

Before you can use the New Project Template wizard, you must have project in the IDE that is structured in exactly the way that you would like it to be available in the New Project wizard. For example, if you are going to create a new project sample, you must first lay it out in the IDE. Then use the New Project Template wizard to add the template to the New Project wizard.

When you make the module that contains the new project template available as an NBM file, the user can install it via the Update Center and then, once it has been successfully installed, select it from the New Project wizard.

See Also
  Creating a J2SE Library Descriptor
  Creating an Action
  Creating a File Type
  Creating a Project Template
  Creating a Window Component
  Creating a Wizard

Legal Notices