This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Using iTextPdf Examples Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Using iTextPdf Examples" Watch "Using iTextPdf Examples" New topic
Author

Using iTextPdf Examples

Alexey Teslin
Greenhorn

Joined: Sep 25, 2013
Posts: 1
Hi,

I am trying to run some iTextPdf examples before buying the book and lisence to decide if this tool is what I really need. I downloaded iText Library from "http://sourceforge.net/projects/itext/files/" site. And am trying to test/run HelloWorld from "http://itextpdf.com/examples/iia.php?id=12" site - it's just a single .java file. This suppose to be the simplest example I guess.

But when I try to run I am getting the error on "package com.itextpdf.text does not exist".

Has anyone experienced a similar problem and offer some help please ? I even copied the iText jar files into the example project.

Thank you
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 19351
    
  10

That would mean that the jar file isn't in your classpath when you compile that code, then.

Although you mention a "project". That suggests you are using some kind of IDE to compile your code. In that case you probably haven't added the jar to the project's classpath, or build path, or whatever your unknown IDE calls it.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 19351
    
  10

And, welcome to the Ranch!
 
wood burning stoves
 
subject: Using iTextPdf Examples