In this post, we are going to how to add the jar files to the eclipse project.

First thing that we need to achieve this is to download the jar file that we want to add/export into our eclipse project.

After downloading the desired jar file, we need to create the eclipse project in which we are going to add the jar in the very picture.

The step by step process is done in the following way.

1)      DOWNLOAD THE JAR FILE

Suppose you are working with the excel sheets using java and you need to add that jar file to your eclipse classpath.

You need to download it first. For that google like below as shown in the screenshot.

Click on the first link.

DOWNLOADINGJAR
download the jar file

It will open a new webpage like following. In that click on the link provided in front of download box. The desired link is underlined with red line.

 

click on the link
click on this link

Once you click on that link, the jar file will get stored in Downloads folder in your machine. It will look something like this.

downloaded jar file
downloaded jar file

Now you are done with the first step.

You need to add this jar to the eclipse project. This starts our step 2.

2)      ADD DOWNLOADED JAR TO ECLIPSE PROJECT

Open eclipse and right click on the project for which you want to add the jar file. After right clicking on it, new options menu will come up; select Properties from that menu which lies at the bottom of the selection menu. Shortcut for this thing is Alt+Enter.

Following screen shot will clear all of your doubts.

select project properties
select project properties

Once you click properties, you will see the default structure/build path of the project. Click on Add External Jars in that window as follows.

add external jars
add external jars

Select the jar that you want to add to your eclipse project. Select it from the list of files that you have in your system as follows

select jar file
select the file

And click on Open and then OK.

You will see that the jar jxl-2.6.jar file has been added to your eclipse project. This will complete your second and step of this post thus marking the end of this it.

 

see the result
updated jar

Thank you for having a patient read. Suggestions are welcome.

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s