Hi,

I am investigating the possibility of using your library to help us create PDFs on the fly with our application.  The library was successfully imported into our project (we are using WebSphere Application Designer).

When I run it we get this error:  [Servlet Error]-[com.lowagie.text.Element]: java.lang.NoClassDefFoundError: com.lowagie.text.Element

I did put some breakpoints into my code to see if it was that.. but my debugger doesn't even get to the code... it sort of stuck on evaluation the imports and not finding this "Element".

In a nutshell this is the code:

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

I put a breakpoint before the following code (but the debugger never gets there...) it like it stuck on something above.

Document document = new Document();
PdfWriter.getInstance(document, new FileOutputStream("HelloWorld.pdf"));
document.open();
document.add(new Paragraph("Hello World"));
document.close();

Any idea?.... Did anyone ever encounter this?

Reply via email to