# New Enterprise Application Client with Existing Sources Wizard: Existing Sources and Libraries

This wizard creates a new standard project containing an enterprise application client.

Your existing application client source does not have to adhere to any particular directory structure. You specify the locations of the configuration files, libraries, and source roots. The only requirement is that the module contain a valid `application-client.xml` deployment descriptor.

In the Existing Sources and Libraries page, you specify the following properties:

Element | Description
--- | ---
Configuration Files Folder | Specifies the location of your deployment descriptors and other configuration files. You must have at least a valid `application-client.xml` deployment descriptor to complete the wizard. Note: The IDE does not convert deployment descriptors for unsupported application servers to Sun Java System Application Server deployment descriptors. You must use an external tool for this purpose.
Libraries Folder | Specifies the location of the class libraries on which the application client depends. All JAR files in this folder are added to the enterprise application project's classpath and packaged with the module for deployment. Note: The IDE only scans this folder once when you create the project. After the project is created, adding JAR files to this folder outside the IDE does not add them to the module's classpath. You have to add them manually through the Libraries tab of the module's Project Properties dialog box.

You can also specify each of the project's source package folders (containing source packages) and test package folders (containing JUnit tests). You can have multiple source roots in a standard project, with the following exceptions:

- The source root cannot already exist in another IDE project.
- The source root cannot already be added to another compilation unit of the same project. For example, a source root that is registered under Test Packages cannot be added to the list of Source Packages.
- All of the source roots are packaged into the same JAR file and share the same classpath.

Note: If you have a source root that needs to be used by several projects, you should create a separate project for the source root and set up compilation dependencies between the projects.

Related Topics

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.