iTextPDF library JAVA - The import com.itextpdf cannot be resolved
<p>I'm creating a simple program in JAVA where there is a button that creates a PDF when clicked. I'm using iText JAVA library for generating the PDF.
I've included iText .jar file in "Java build path" but when I try to import classes of the library i get this error: <code>The import com.itextpdf.cannot be resolved.</code></p>

<p>For example:</p>

<pre><code>import com.itextpdf.text.BaseColor; // The import com.itextpdf.text.BaseColor cannot be resolved
import com.itextpdf.text.Document; // The import com.itextpdf.text.Document cannot be resolved
import com.itextpdf ... // and so on
</code></pre>