Including Library in Build Path

I am using Eclipse 3.x,

How do I add External Libraries in my Project

Ans: Add all the external Jars in the build path (from project properites)

What if its a huge hirarchy ?

Ans shoud be: make a userlibrary and link that library to the folder which contains all jar files (hirarch of folders), and then include that userlibrary to your project.

Problem; If I create userlibrary, I have to select the jar files .. not the higetst level folder, which contains all the jar files ... This is what I dont want. I want to just select a folder.. and that all, and then use this folder as the build path .. "HOW do I do this ""?

-

[666 byte] By [karephula] at [2007-11-27 9:27:38]
# 1

In eclpise, Drop all jar files under the lib folder of your project (including folders and subfolders).

Right click on the project icon, go to <properties><java build path><libraries>

Navigate to one of the sub folders. click on the top jar file, hold down the <shift> key and then click on the bottom jar file. All jar files between are selected. Add them to the project. Since this is a one-time-only effort, I wouldn't spend too much time trying to find a better short cut. You can pretty quickly go though each subfolder and get what you need.

If you insist on your way, perhaps you need to repackage all the folders and subfolders with thier jar file in an all enclosing jar file with a manifest. I dont know how to do this.

An alternative is to read up on Maven (the more modern way of automatically adding jar files and thier correct versions to a project). However, it will probably take you a long time to come up to speed on it.

George123a at 2007-7-12 22:30:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
yea, May be you are right !!!I just asked, so that I can know if there is a quick and elegent way. But yea, its one time effort .. and so.. I will stick to the quick and Dirty one !!Thanks
karephula at 2007-7-12 22:30:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...