How do I import third-party libraries for a project in Eclipse?

1

I'm trying to use two third-party libraries for a Java project in Eclipse: iText (to generate a PDF) and JavaMail (to send this PDF via email), but I can not even import them ...

I have tried everything. I already dragged the folder to the / src of my project, I already went through botão direito > Import... , I already went through the Properties of the project ... I already did everything, but I can not add the libraries to my CLASSPATH.

I have two main difficulties:

1) Library folders are FULL of files, and I do not understand anything. There are a thousand .jar. I do not know what I need to play into Eclipse.

2) When I play ALL files (either by Import... , or by playing the entire folder, some parts of the libraries are imported, but some are not.) For example: com.itextpdf.text yes, quiet but com.itextpdf.text.Document no

What do I need?

From a REALLY GOOD tutorial, to someone who is STARTING NOW ... All of the ones I think skip many steps and I get lost. Most DO NOT SPEAK LIKE THAT PLAY THE LIBRARY WITHIN THE ECLIPSE. And the others - who speak - speak as if it were the simplest thing in the world.

I'm going crazy myself.

Thank you in advance.

    
asked by anonymous 27.05.2017 / 07:28

0 answers