Eclipse Java Build Path
Setting the Java build path
The Java build path is used to find dependent classes when compiling a Java project, including the following items:
- Source packages
- Project-related jar packages and class files
- Libraries referenced by the project
We can view and modify the Java build path through the Java Build Path option in the Java project properties dialog.
The Java project properties dialog can be invoked by right-clicking the specified Java project in the Package Explorer view and selecting the Properties menu item.
Then select Java Build Path in the left window.
In the Java build path window, we can see the jar packages that have already been referenced.
Referencing jar packages can be done in the Libraries tab. In the Libraries tab, we can click Add JARs to add jar packages that exist in the Eclipse workspace, or click External JARs to import jar packages from other files.