Java Projects

A Java project has an associated Java builder that can incrementally compile Java source files as they are changed. Each Java project maintains additional information about the type hierarchy and the references and declarations of Java elements. This information is constantly updated as the user changes the Java source code; it is not dependent on the builder.

Organizing a Java Project

You can organize Java projects in two different ways.

Using the Project as the Source Container

In this organization, all Java packages are created directly inside the project. This is the recommended organization for simple projects. The generated CLASS files are stored along with the JAVA source files.

Using Source Folders as the Source Container

In this organization, packages are created not directly inside the project, but in source folders. You create source folders as children of the project and create your packages inside these source folders.

This is the recommended organization for more complex projects. It allows you to subdivide packages into groups.