Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Adding Jar Files to the Build Path
Adding Jar Files to the Build Path [message #968547] Fri, 02 November 2012 14:49 Go to next message
Matt Connors is currently offline Matt ConnorsFriend
Messages: 3
Registered: November 2012
Junior Member
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 16:58 Go to previous messageGo to next message
Larry Parker is currently offline Larry ParkerFriend
Messages: 8
Registered: October 2012
Location: Carson City, Nevada
Junior Member
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 17:32 Go to previous messageGo to next message
Matt Connors is currently offline Matt ConnorsFriend
Messages: 3
Registered: November 2012
Junior Member
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 18:11 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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: Tue Apr 23 10:52:12 GMT 2024

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

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

Back to the top