How to setup a .jar file in Eclipse IDE







How to set a new package in Eclipse IDE



In this tutorial you will learn how you can setup a jar file in Eclipse IDE. Follow the given steps and you could easily set it up.

Let me specify that in my case we will install a jar file created my me that is utility.jar .If you are downloading other packages like Free TTS,open cv, j3d or any other then you just need to find the jar files in their folder and rest of the tutorial remain the same.

Step 1:- Open Eclipse Ide

Open your Eclipse ide in my case it is Version: Luna Service Release 2 (4.4.2)




Step 2:-

In the top menu bar click on WINDOW menu item. And then you will see a pop up menu will appear.In the pop up menu click on PREFERENCES .



Step 3:-



Then in the next window's left hand side click on JAVA and then on 
BUILD PATH .Under build path you will see two options classpath variables and User Libraries you need to click on user libraries.









Step 4:-



Then the next window which will appear must look like this.




Now just click on NEW button and specify any name to your library. After this click on OK.









Step 5:-



 Now you just need to specify the jar files, for this select your newly created library and click on ADD EXTERNAL JARS. Just find your way to the jar file in your pc and click on OK button and you are done.






FIND THE .jar FILE






And finally click on OK button




Hope it might be useful for you please fell free to comment if you got stuck in any step .



Also see how to similar stuff in BLUE-J.

Comments