# Nesting Resources in Output Directory

### Layout on File System

- The Java source files for a product are laid out both in `sources` and `deliverables` directories.
- All Java class files are laid out in `deliverables` directory.
- Project needs to use some libraries located in `deliverables/libraries` directory:

### Steps for Defining a Corresponding Project

1. Click Window > Open Perspective > Other... > Java to change to the Java perspective.

2. Click File > New > Other... > Java Project to open the New Java Project wizard.

3. Type "Product" in the Project name field. Click Next.

4. On the next page, Type "Product/deliverables" in Default output folder field.

   Select "Product" source folder.

   Click Link additional source link in Details pane or button in view bar.

5. In Link Source click Browse.... and choose the `D:\Product\sources` directory.

6. Click Finish to validate and close the dialog.

7. Again, Select "Product" and click Link additional source link in Details pane or button in view bar.

8. In Link Source click Browse.... and choose the `D:\Product\deliverables` directory.

9. Expand the "Product/deliverables" source folder. Select the "libraries" package and exclude it from build path using either Exclude 'libraries' from build path link or Exclude popup-menu item.

10. Your project source setup now looks as follows:

11. Select Libraries tab.

    Click on Add JARs....

12. Expand "Product" hierarchy to select jar files in "libraries" directory

    Click OK.

13. Click Finish to finalize project creation.

14. You now have a Java project with a "sources" folder and an output folder which contains nested library resources.

### Related Concepts

Java projects
Java views

### Related References

New Java Project Wizard
Package Explorer View