The source files for the company's product are laid out in one directory "src" and class files are output in another directory "bin":
NOTE: The auto-detection works only if the source files contain the correct package statement, i.e. for "Main.java":
package com.xyz;
Warning: If the preference Window > Preferences > Java > Compiler > Build Path > Scrub output folder on full build is checked, clicking Finish will scrub the "bin" directory in the file system before generating the class files.
Note: This solution creates a ".project" file and a ".classpath" file in the "Product" directory. If you do not wish to have these files in the "Product" directory, you should use linked folders as shown in the Sibling products in a common source tree section.
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