Add a JAR file to the build path

You can add a JAR file stored either in the workbench or anywhere in your file system to the build class path.

To add a JAR to your build class path...

  1. Select the project, and from its pop-up menu, select Properties. In the Properties dialog, select the Java Build Path page.

  2. Click the Libraries tab.

  3. You can now either add a JAR file which is contained in your workspace or which is somewhere else:

    • To add a JAR file which is inside your workspace click the Add JARs button

    • To add an external JAR file click the Add External JARs button

  4. In the dialog that appears, select the JAR file that you want to add. Note that you can add multiple JARs at once.

Related concepts

Java builder
Build classpath

Related tasks

Adding a library folder to the build path
Building a Java program
Building automatically
Building manually
Creating a new JAR file
Viewing and editing a project's build path
Working with build paths

Related reference
Java Build path

Legal notices