When you open the New Project wizard (File | New Project), you are presented with several templates, the use of which might not be immediately apparent. Depending on the distribution of the IDE that you have, you might have several categories of templates. See Table 3-1 for the list.
For each category, the IDE provides various templates based on the structure of the project and whether you already have sources and/or a fixed Ant script in place. Standard project templates (all of the templates with the exception of With Existing Ant Script templates) provide maximum integration with the IDE's user interface. However, the use of those templates assumes that your project:
If either of those things is not true of your project, you can do one or more of the following:
The free-form templates offer you more flexibility in structuring your project. However, when you use a free-form template, you have to do some extra configuration and write build targets to get some IDE functionality (like debugging) to work. See Chapter 16 for more information on free-form projects. This chapter mainly covers general Java projects created from standard templates. There is also some information on web projects, though web projects are covered in more detail in Chapter 8. See Chapter 11 for information on setting up EJB projects, Chapter 12 for web service projects, Chapter 13 for Java EE application projects, and Chapter 14 for Java ME projects. |