Free Support Forum -

Aspose.Pdf.Kit for Java -- Samples not running due to missing libraries

We are evaluating Aspose.Pdf.Kit for Java on a workstation that has Java 5 SDK installed (1.5.0_06). We've tried running several of the sample classes, but we're getting errors related to missing classes. For example:

java -classpath .\examples;.\lib\aspose.pdf.kit.jar samples.form
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/crimson/tree/ElementNode2
at com.aspose.pdf.kit.Form.getFieldValue(Unknown Source)
at com.aspose.pdf.kit.Form.if(Unknown Source)
at com.aspose.pdf.kit.Form.allFlatten(Unknown Source)
at samples.form.FieldFlattenAll.main(

The samples.convert.PageToImage class threw the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/media/jai/codec/SeekableStream
at com.aspose.pdf.kit.eq.a(Unknown Source)
at com.aspose.pdf.kit.PdfConverter.a(Unknown Source)
at com.aspose.pdf.kit.PdfConverter.getNextImage(Unknown Source)
at com.aspose.pdf.kit.PdfConverter.getNextImage(Unknown Source)
at samples.convert.PageToImage.main(

In this case, we downloaded the JAI jar files from Sun and were able to run the sample, but it seems like the Aspose.Pdf.Kit for Java is referencing several class libraries that are not included in either the standard Java SE installation or in the aspose.pdf.kit.jar file. I have not been able to locate any documentation that lists 3rd-party libraries that are required. Can you provide some information regarding these issues, and why these libraries would not be packaged into the Aspose.Pdf.Kit distribution?


This message was posted using Aspose.Live 2 Forum

Dear Dave,

Thanks for considering Aspose & Sorry for the inconvenience.

We are working on this issue and will release new version later in this month to solve the problem.

As a workaround, you need download two 3rd-party jars about which you have already known. And the crimson jar which exists in standard SUN jre 1.4 and could be download from

Best regards,