Product1
and Product2
.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.
Click OK in confirmation dialog to have "/Product1/bin" as default output folder.
Your project source setup now looks as follows:
Click Finish.
Repeat these steps for "Product2".
You now have two Java projects which respectively contain the sources of "Product1" and "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