# Sibling products in a common source tree

### Layout on file system

- The source files for products are laid out in one big directory that is version and configuration managed outside Eclipse.
- The source directory contains two siblings directories `Product1` and `Product2`.

### Steps for defining corresponding projects

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 "Product1" in the Project name field. Click Next.

4. On the next page, Select "Product1" source folder.

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

5. In Link Source dialog click Browse.... and choose the `D:\Product1\JavaSourceFiles` directory.

6. Click Finish to validate and close the dialog.

7. Your project source setup now looks as follows:

8. Click Finish.

9. Repeat steps 2 to 8 for "Product2".

10. You now have two Java projects which respectively contain the sources of "Product1" and "Product2".

Java projects
Java views

New Java Project Wizard
Package Explorer View