Creating an application client project

You can use a wizard to create a new application client project and add it to a new or existing enterprise application project.

Application client projects contain the resources needed for application client modules. Application client projects contain programs that run on networked client systems. An application client project is deployed as a JAR file.

Like the other types of projects, application client projects can contain one or more project facets, which represent units of functionality in the project. A new application client project should have the Application Client module facet. Depending on what you want to use the project for, you may want to enable other facets for the project.

To create a J2EE application client project:

  1. In the J2EE perspective, click File > New > Project > J2EE > Application Client Project.
  2. In the Project Name field, type a name for the application client project.
  3. To change the default project location, clear the Use default check box under Project contents and select a new location with the Browse button. If you specify a non-default project location that is already being used by another project, the project creation will fail.
    Note: If you type a new EAR project name, the EAR project will be created in the default location with the lowest compatible J2EE version based on the version of the project being created. If you want to specify a different version or a different location for the enterprise application, you must use the New Enterprise Application Project wizard.
  4. If you want to add the new project to an enterprise application project, select the Add project to an EAR check box and select a project in the EAR Project Name list. If you choose to add the project to an existing EAR project, the Target runtime field becomes disabled because the target runtime for the new project will be the same as that of the EAR project.
  5. In the Target runtime field, select the target runtime for the project.
  6. If you want to use a predefined configuration for your project, select a configuration in the Common Configurations list.
  7. Click Next.
  8. Select the check boxes next to the facets you want this project to have and select a version number for each facet. You can also choose a preset combination of facets from the Presets list, and you can find out more about the requirements for each facet by right-clicking the facet name and then clicking Show Constraints.
  9. If you want to limit your project so it will be compatible with one or more runtimes, click the Show Runtimes button and select the runtimes that you want the project to be compatible with.
  10. Click Next.
  11. In the Source Folder field, enter the name of the folder to use for source code.
  12. If you want to create a default class for the module, select the Create a default Main class check box.
  13. Click Finish.
Related concepts
J2EE architecture
Application client projects
Enterprise application projects
Project facets
Related tasks
Exporting an application client project
Importing an application client JAR file