I'm new to itext, so I followed the tutorial/examples fairly closely.
What happens is that my program compiles with no errors. If I run it in the
Eclipse IDE, everything works fine and there are no exceptions.
If I try and run it using the commmand line, I get an error that says
"NoClassDefFoundError" when my program calls the Document constructor.
Also, if I make a jar file with eclipse, everyint runs up until the
constructor, but I don't get any visible errors. The program just hangs.
Here is the start of my code that uses the constructor:
Document doc = new Document();
try {
PdfWriter.getInstance(doc, new FileOutputStream(save));
HeaderFooter footer = new HeaderFooter(new Phrase("PAGE:
",FontFactory.getFont(FontFactory.HELVETICA, 9)), true);
footer.setBorder(Rectangle.NO_BORDER);
doc.setFooter(footer);
doc.open();
//function to print lines
print(dir,0,doc);
}
catch(DocumentException de) {
System.err.println(de.getMessage());
}
catch(IOException ioe) {
System.err.println(ioe.getMessage());
}
doc.close();
I've done a lot of testing, and nothing else I've called seems to matter.
Any help would be greatly appreciated.
-Ben Tripp
www.bennyt.com
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions