Hotmail writes:
> Hi
>
> while i am executing your sample example Chap0101.java of generating pdf file in
>java program , it is giving following
> run time error
> --
> java.lang.NoSuchMethodError
> at com.lowagie.text.pdf.PdfDate.<init>(Unknown Source)
> at com.lowagie.text.pdf.PdfDate.<init>(Unknown Source)
> at com.lowagie.text.pdf.PdfDocument$PdfInfo.addCreationDate(Unknown Source)
> at com.lowagie.text.pdf.PdfDocument$PdfInfo.<init>(Unknown Source)
> at com.lowagie.text.pdf.PdfDocument.<init>(Unknown Source)
> at com.lowagie.text.pdf.PdfWriter.getInstance(Unknown Source)
> at Chap0101.main(Chap0101.java:47)
> Exception in thread "main"
> PdfWriter.getInstance(document, new FileOutputStream("Chap0101.pdf"));
> --
>
> please give me respose for it after rectifing it
Before making a release all examples are tested by using
'ant examples' (see the build.xml-file)
I didn't encounter this error when I executed this example
with the release I made yesterday:
http://www.lowagie.com/iText/examples/Chap0101.pdf
The error you are mentioning is typical when you mix
old classfiles with new ones. Are you sure you don't
have some old iText jar in your classpath.
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions