How to Add JARs to Project Build Paths in Eclipse (Java)

Copy the JARs you'll be using to your project.,Complete either of the following methods to finish configuring your build path., Expand lib in Eclipse and select all the JARs you need. , Right-click the JARs and navigate to Build Path. , Select Add...

11 Steps 1 min read Medium

Step-by-Step Guide

  1. Step 1: Copy the JARs you'll be using to your project.

    Here's how it's conventionally done:
    Create a new folder named lib in your project folder.

    This stands for "libraries" and will contain all the JARs you'll be using for that project.

    Copy the JARs you need to lib.

    Refresh your project by right clicking the project name and selecting Refresh.

    The lib folder will now be visible in Eclipse with the JARs inside.
  2. Step 2: Complete either of the following methods to finish configuring your build path.

    ,,, The JARs will disappear from lib and reappear in Referenced Libraries. ,,,,, The JARs will now appear in the list of libraries in the build path. , The JARs will now be in Referenced Libraries instead of lib.
  3. Step 3: Expand lib in Eclipse and select all the JARs you need.

  4. Step 4: Right-click the JARs and navigate to Build Path.

  5. Step 5: Select Add to Build Path.

  6. Step 6: Right click the project name and navigate to Build Path.

  7. Step 7: Select Configure Build Path... and the project properties window will appear showing your build path configurations.

  8. Step 8: Select the Libraries tab.

  9. Step 9: Click Add JARs...

  10. Step 10: Locate and select the JARs you want and click OK.

  11. Step 11: Click OK to close the properties window.

Detailed Guide

Here's how it's conventionally done:
Create a new folder named lib in your project folder.

This stands for "libraries" and will contain all the JARs you'll be using for that project.

Copy the JARs you need to lib.

Refresh your project by right clicking the project name and selecting Refresh.

The lib folder will now be visible in Eclipse with the JARs inside.

,,, The JARs will disappear from lib and reappear in Referenced Libraries. ,,,,, The JARs will now appear in the list of libraries in the build path. , The JARs will now be in Referenced Libraries instead of lib.

About the Author

B

Beverly Jones

Creates helpful guides on pet care to inspire and educate readers.

59 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: