First, Create a Folder for Your JARs
Whichever method you will be using, as outlined below, you will first need to create a folder specifically for your JARs. This will act as your "libraries" file and will contain copies of all the JARs you will be using for the project. Here's how to create the folder for your JARs:
Open your project folder. Create a folder named "lib" in the project folder. Next, copy all the JARs that you will be using to your project to the "lib" file. Refresh your project by right clicking on the project name and selecting Refresh.
The lib folder should now be visible in Eclipse along with all the JARs inside.
How to Add JARs to Java Project Build Paths
After creating this folder and copying the JARs, you will now be able to configure your build path. Use one of the methods outlined below to do this.
How to Add Internal JARs
Method #1
Expand the lib file in Eclipse and select all the JARs that you will be using. Next, right-click on the selected JARs and then click on: Build Path. Now select: Add to Build Path.
Once you do this, the JARs will disappear from lib and reappear in the "Referenced Libraries" section. And you are done!
Method #2
Right-click on the project name and then navigate to: Build Path. Next, select: Configure Build Path... The project properties window should appear showing your build path settings and configurations.
Select the Libraries tab and then click on: Add JARs... Now, locate the JARs that you want to use and select them. Next, click OK.
Now, the JARs will then appear in the list of the libraries in the build path. Click OK to close the properties window.
You should find that the JARs are now located in the References Libraries file instead of lib.
How to Add External JARs
To add external JARs, right-click on the project name and select: Build Path. Next, select: Add External Archives... Now locate and select the JARs that you want to add, and then click on: Open
The JARs will now appear in the Referenced Libraries file.
Published by The Armchair Geek
We are a Mid-West PLR Firm specializing in creating powerful web content for clients in a wide array of industries. This is a sampling of some of our IT-focused articles. For more of our work, you can co... View profile
- How to Create Context Menu for FilesThe default menu of Windows Explorer only includes "Copy", "Cut", "Paste", "Create Shortcut" and "Rename". Therefore, if you want to use another task, you have to supplement the menu.
How to Create Christmas Gift Tags in AbiWordHave you ever thought of creating your own Christmas Gift Tags? You can create your own Christmas Gift Tags in AbiWord. - One Way to Create a Website for a Non-Profit OrganizationCreating a website is a great way to move your organization into the 21st century. This article will walk you through the steps to create a website.
- 5 Minute Guide to Selenium IDE and Selenium Remote Control (Java) Test Tools5 Minute Guide To Selenium IDE and Selenium Remote Control (Java) Test Tools
Create a Gift Cookbook for GivingHow to's for creating a uniquely personal cookbook as a holiday gift to family and friends.
- How to Install Java JDK and Set the Environment Variables
- Christian Band, Jars of Clay, Album Review: Good Monsters
- Caffeinated Religiosity
- How to Create a Counter-Strike 1.6 Server
- University of Phoenix MBA Course Project Plan Paper
- How to Create Scrapbook Pages in PhotoScape
- Computer Tips and Tricks - How to Create a "Private" Folder

