Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Adding 3rd Party libraries to eclipse(Adding software via .zip files.)
icon4.gif  Adding 3rd Party libraries to eclipse [message #863677] Sun, 29 April 2012 15:51 Go to next message
Bill Moo is currently offline Bill MooFriend
Messages: 8
Registered: April 2012
Junior Member
I would like to add support for java mail to my Eclipse (indego) install but I can't seem to be able to do this intuitively or correctly!

The download I have is in Zip format and contains everything I need but how can I install this file so I can also get access to the Javadocs via the IDE and the mail.jar is available to all projects?

--
Thanks

Bill.


Re: Adding 3rd Party libraries to eclipse [message #865687 is a reply to message #863677] Mon, 30 April 2012 14:13 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 4/29/2012 9:51 AM, Bill Moo wrote:
> I would like to add support for java mail to my Eclipse (indego) install
> but I can't seem to be able to do this intuitively or correctly!
>
> The download I have is in Zip format and contains everything I need but
> how can I install this file so I can also get access to the Javadocs via
> the IDE and the mail.jar is available to all projects?

How I do it is to explode the zip archive somewhere. Then I add the
JAR(s) to the project via Build Path. In the Libraries tab of Build
Path, you can expand the JAR(s) in question and attach either source
code, if you have it, or Javadoc.

You will have to do this on a project-by-project basis.

If you wish not to have to do this every time you create a new project,
you might investigate Maven.
Re: Adding 3rd Party libraries to eclipse [message #867251 is a reply to message #865687] Tue, 01 May 2012 07:39 Go to previous messageGo to next message
Bill Moo is currently offline Bill MooFriend
Messages: 8
Registered: April 2012
Junior Member
Thanks for that Russell, but I was hoping to avoid doing this sort of thing on a project-by-project basis it's just a bit bonkers and quite redundant.

You say I can use Maven so I'll read up on that but it seems to me to be a long way for a shortcut.

--
Bill
Re: Adding 3rd Party libraries to eclipse [message #867857 is a reply to message #867251] Tue, 01 May 2012 14:07 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 5/1/2012 1:39 AM, Bill Moo wrote:
> Thanks for that Russell, but I was hoping to avoid doing this sort of
> thing on a project-by-project basis it's just a bit bonkers and quite
> redundant.
>
> You say I can use Maven so I'll read up on that but it seems to me to be
> a long way for a shortcut.

Yeah, I don't like or use Maven myself when I can avoid it, but it makes
it a no-brainer for managing libraries. The archetypes for creating
Eclipse projects insert two additional levels of useless subdirectories.
However, I'm guessing there's probably a way it can also automatically
wire up source code/Javadoc to third-party libraries (THAT part I
haven't actually done).
Previous Topic:Developing HTML/JSP Pages in Eclipse using Toolbox
Next Topic:update offline?
Goto Forum:
  


Current Time: Thu Apr 25 14:39:48 GMT 2024

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

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

Back to the top