Cloneslide demo fails


#1

I’m trying to run the cloneslide demo. It fails…


Exception in thread “main” java.lang.NoClassDefFoundError: com/sun/media/jai/codec/ByteArraySeekableStream
at com.aspose.slides.PPImage.do(SourceFile:256)
at com.aspose.slides.PPImage.getRenderedImage(SourceFile:207)
at com.aspose.slides.PPImage.(SourceFile:40)
at com.aspose.slides.Picture.(SourceFile:15)
at com.aspose.slides.Presentation.do(SourceFile:186)
at com.aspose.slides.Presentation.(SourceFile:407)
at CloneSlide.main(CloneSlide.java:33)

Here’s what I’ve tried.
1. Same setup works on another machine. eclipse
2. I’ve tried downloading the java advanced media jar and adding to classpath. Still doesn’t work.

Please help,

I would really like to use the slides package.



#2

Please check, after correct installation of JAI and JAI Image IO you should have 5 jar files in the classpath:

clibwrapper_jiio.jar
jai_codec.jar
jai_core.jar
jai_imageio.jar
mlibwrapper_jai.jar