Java Project Templates
See Also
For each type of Java application, the IDE provides two types of project templates:
- Standard templates. Templates in which the IDE controls all source
and classpath settings, compilation, running, and debugging.
- Free-form templates. Templates in which your own Ant script controls
all classpath settings, compilation, running, and debugging.
Standard Project Templates
With standard project templates, the IDE controls all aspects of how your application
is built, run, and debugged. You set a project's source folder, classpath, and
other project settings when creating the project and in the Project Properties
dialog box. The IDE generates an Ant build script in which all of your settings
are stored.
The IDE comes with the following standard templates:
Standard
Java Applicatons. Java Application, Java Desktop Application, Java Class Library, Java Project with
Existing Sources
Web
Applications. Web Application, Web Application with Existing Sources
Enterprise
Applications. Enterprise Application, Enterprise Application with Existing
Sources
EJB
Modules. EJB Module, EJB Module with Existing Sources
Enterprise Application Clients. Enterprise Application Client, Enterprise Application Client with Existing Sources
Enterprise Packaged Archives. Packaged Archive
NetBeans
Modules. Module Project, Module Suite Project, Library Wrapper
Module Project
- Depending on what modules you have installed, your
IDE may contain additional templates. Consult the help for your additional
modules for more information.
Free-Form Project Templates
With free-form project templates, the IDE relies on your existing Ant script
for instructions on how to compile, run, and debug your applications. The
settings you configure in the New Project wizard when creating a project as
well as in the Project Properties dialog box are used to tell the IDE how
your Ant script manages your source code and must be consistent with the settings
in your Ant script.
For example, all classpath elements are handled by your Ant script. When you
declare the classpath for a free-form project, you are only telling the IDE
which classes to make available for code completion and refactoring. These settings
do not affect the actual classpath used when compiling or running your source
code.
Free-form projects can contain as many source folders as your Ant script
is configured to handle. If your Ant script does not contain targets for all
IDE actions, like debugging and running your project, you can easily write Ant
targets for these actions.
The standard distribution of the IDE contains the following free-form project
templates:
Java
Free-Form Project. A free-form Java project.
Web
Free-Form Project. A free-form project containing a web
application.
- See Also
- About Standard Projects
- About Free-Form Projects
- Creating a Java Project
- Creating
a Web Application Project
- Creating an Enterprise Application Project
- Creating an EJB Module Project
- Creating an Enterprise Application Client
- About Packaged Archive Projects
- About Creating Modules
- Importing an Eclipse or JBuilder Project
Legal Notices