Issues about text extraction with java


#1

My program is :

FileInputStream fis = new FileInputStream(new File("e:\\1.ppt"));
Presentation p = new Presentation(fis);

What I got is :

Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/jai/RenderedImageAdapter
at com.aspose.slides.Presentation.do(SourceFile:186)
at com.aspose.slides.Presentation.(SourceFile:441)
at Business.Facade.HWManager.FileProcessor.PPTDocument.main(PPTDocument.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)

I dont know why ,can you help me


#2

Please check system requirements at the bottom of this page:
http://www.aspose.com/wiki/default.aspx/Aspose.Slides/SystemRequirements.html

And you have to install JAI and JAI Image I/O libraries.