Search code examples
javalinuxeclipseubuntuapache-commons-email

Apache Commons Email install in Eclipse: cannot be resolved


I'm sorry, I do not have enough reputation to comment on others posts, so I have to ask a new Question.

I'm on ubuntu Linux 11.10, and I'm trying to install the Commons Email in eclipse. But the only files I can download is tar.gz and .zip. These cannot be imported with the method described in the other thread, where you add external jars in the projects libraries. I tried to drag the "src" folder into my "src" folder in my project. That gives the error "... cannot be resolved" What am I doing wrong?


Solution

  • Just about all of the Apache commons code is also in the central Maven repository which has jar that are easy to import/use.

    http://search.maven.org/#browse%7C-990531281

    I just went to the search bar and looked for apache commons email:

    http://search.maven.org/#search%7Cga%7C1%7Capache%20commons%20email