Open a Java perspective, select the menu item File > New > Project.... to open the New Project wizard.
Select Java project in the list of wizards and click Next.
On the next page, type "Product1" in the Project name field. Click Next.
On the next page, Select "Product1" source folder.
Click Link Additional Source to Project button in view bar.
In Link Additional Source click Browse.... and choose the D:\Product1\JavaSourceFiles
directory.
Type "src" in the Folder name field.
Click OK to close the dialog.
Click OK in confirmation dialog to have "Product1/bin" as default output folder.
Your project source setup now looks as follows:
Edit project "Product1"properties and select Java Builder Path page.
On Source tab, click Add Folder....
On Source Folder Selection click Create New Folder....
In New Folder, type "src-common" in the Folder name field.
Click Advanced>> and check Link to folder in the file system.
Then click Browse.... and choose the D:\Framework\JavaSourceFiles
directory.
Click OK twice to close dialogs.
Your project setup now looks as follows:
Repeat these steps for "Product2".
Working with build paths
Creating a new Java project
Creating a Java project with source folders
Creating a new source folder
Using the Package Explorer