Skip to main content



      Home
Home » Newcomers » Newcomers » Adding Jar Files to the Build Path
Adding Jar Files to the Build Path [message #968547] Fri, 02 November 2012 10:49 Go to next message
Eclipse UserFriend
I am writing a java program and want to include 30 or so jar files in the class path.

When I go to Project/Properties/Java Build Path/Libraries I can add jar files one at a time. Is there a way I can indicate that all the jar files in a particular folder are to be included in the build?

Thanks in advance.
Re: Adding Jar Files to the Build Path [message #968671 is a reply to message #968547] Fri, 02 November 2012 12:58 Go to previous messageGo to next message
Eclipse UserFriend
Choose the option just below "Add JARs..." which is "Add External JARs.." and shift-click or ctrl-click the jars you want added. That's how I add multiple jars.

I'm pretty new to eclipse so if there is a better way then I would like to know too. Very Happy
Re: Adding Jar Files to the Build Path [message #968704 is a reply to message #968671] Fri, 02 November 2012 13:32 Go to previous messageGo to next message
Eclipse UserFriend
Yes, that worked great.

Many thanks,
Re: Adding Jar Files to the Build Path [message #968745 is a reply to message #968671] Fri, 02 November 2012 14:11 Go to previous message
Eclipse UserFriend
On 11/2/2012 10:58 AM, Larry Parker wrote:
> Choose the option just below "Add JARs..." which is "Add External
> JARs.." and shift-click or ctrl-click the jars you want added. That's
> how I add multiple jars.
>
> I'm pretty new to eclipse so if there is a better way then I would like
> to know too. :d

If you have a set of disparate JARs that you keep wanting to add to new
projects you're creating frequently, there's a concept of User Library
you can use to create the collection, then you just add that collection
each time.

However, this method plays havoc with .classpath and version-control
systems since it always results in external (non-workspace) paths.
Previous Topic:Class not found
Next Topic:How to run multiple launch files sequentially?
Goto Forum:
  


Current Time: Wed Jul 23 21:47:37 EDT 2025

Powered by FUDForum. Page generated in 0.10121 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top