Where to save iText-5.0.1.jar to make compiler happy


I want to save "iText-5.0.1.jar" file in a a fol?der so that it can be imported by import statement in my Java source file

import com.lowagie.text.Document;
import com.lowagie.text.DocumentException;
import com.lowagie.text.PageSize;
import com.lowagie.text.Paragraph;
import com.lowagie.text.pdf.PdfWriter;

After I run my java program I get error as below: CreatingANewPagePDF.java:4: package java.com.lowagie.text does not exist import java.com.lowagie.text.Document; Please help...

✍: Kiran

You can simply put "iText-5.0.1.jar" in the same folder as your Java source file and add "-classpath iText-5.0.1.jar" option to your javac and java command line.

2010-12-17, 9076👍, 0💬