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.
To create a J2EE application client project:
- In the J2EE perspective, select File > New > Application Client Project.
- In the Name field, type a name for the application client project.
- To change the default Project location, click the Browse button to select a new location. If you specify a non-default project location that is already being used by another project, the project creation will fail.
- Click Show Advanced.
- In the J2EE version drop-down list, select the J2EE version to which you want your application client project to adhere.
- In the Target server drop-down list, select the application server that you want to target for your development. This selection affects the run time settings by modifying the class path entries for the project.
- Specify whether you want to add the new module to an enterprise application (EAR) project.
- In the EAR project combination box, type a new project name or select an existing enterprise application project from the drop-down list. Or, click the New button to launch the New Enterprise Application Project wizard.
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, use the New Enterprise Application Project wizard.
- Select Create a default Main class if you want the wizard to generate a Java class to be the application entry point.
- If you are adding the new module to an existing enterprise application, click Next to specify module and JAR file dependencies on the next page of the wizard. This updates the manifest class-path and Java project build path with the appropriate JAR files. If you are creating a new enterprise application project, or if you have no dependencies to specify, click Finish.
Application Client modules, EJB modules, and Web modules can all have dependencies on EJB modules or utility JAR files. Modules cannot depend on WAR or Application Client JAR files.
- Click Finish.
Related concepts
J2EE architecture
Application client projects
Client Deployment Descriptor editor
Related tasks
Exporting an application client project
Importing an application client JAR file
Sharing projects using Project Interchange