We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Working Application (on development system) is not working at test system (Aspose Slides for Java)

An EAR file for our Windows development system works fine, the application runs.

When transporting the same EAR file to our TEST system (Linux), the application raises an error, when instantiating the Presentation object with

Caused by: java.lang.NoClassDefFoundError: com.aspose.metafiles.EmfMetafileat java.lang.J9VMInternals.verifyImpl(Native Method)

at java.lang.J9VMInternals.verify(J9VMInternals.java:66)

at java.lang.J9VMInternals.verify(J9VMInternals.java:64)

at java.lang.J9VMInternals.initialize(J9VMInternals.java:127)

at com.aspose.slides.Presentation.do(SourceFile:297)

at com.aspose.slides.Presentation.(SourceFile:468)

That is the code where it happens:

this.presentation = new Presentation(EngineImpl.class.getResourceAsStream("/mytemplate.ppt"));

As already mentioned, it works at our development system.

We use the JAI Java library, no native accelleration, so the JAI jars should run for Windows and Linux.

This application creates only Powerpoint files, we do not anything with EMF graphic files.

At a different post I read something about possible server.policy problems, can this be our problem? Which policy declaration we need in detail?

Thanks in advance!

Most probably the presentation contains metafiles inside.
Try to add Aspose.Metafiles to class path.

Hi Alexey,

thanks for the fast answer.
Please forgive my ignorance, but WHY should we add this library, although on our environment system everything works fine? On our environment system is no metafiles library!

Thanks in advance!

Dear jvogel,

Such an error occurs only when presentation contains EMF/WMF images. In such a case, Aspose.Slides for JAVA needs Aspose.Metafiles to render them in thumbnails or to process them.


I don’t know. Everything should work without Aspose.Metafiles but
may be your app server on linux has more strict rules and check all
possible class referencies inside library.