|
Re: Adding 3rd Party libraries to eclipse [message #865687 is a reply to message #863677] |
Mon, 30 April 2012 14:13 |
|
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 #867857 is a reply to message #867251] |
Tue, 01 May 2012 14:07 |
|
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).
|
|
|
Powered by
FUDForum. Page generated in 0.09383 seconds