Monday, October 5, 2015

How to install external libraries to your Eclipse



We will download and install an external library "jsch.jar" as a practice here. Note that ".jar file" is a library which we are talking about. At first, we will download a .jar file. We will download jsch.jar here. This library is used to make, for example, a FTP program.

Access to this website.
http://www.jcraft.com/jsch/


You can download the jsch.jar file (not .zip file) and save it somewhere in your PC.

Now we will instaill the jar file to your Eclipse. Depending on your situation, there are two ways to install external libraries to your Eclipse. At frst, if you are making a new project with your Eclipse,

just name it and click Next.

Then you will see a display as below.
Click the "libraries". Then you can see "Add external Jars" on the left pane. Now click it.

Then you can choose a file to install. Choose the jsch-0.1.53.jar file which we downloaded just now.


If you already have a project, right-click on your project.
 You can see "Properties" at the bottom of the menu. Click the properties and you can "Java Build Path".
Click the Java Build Path.

Then choose the libraries and add external jar
Then you can choose your jar file. If your display shows the jar file as follows:
this means you've succeeded.