java.lang.IllegalStateException: Cannot find resource '/Aspose/Resources/GenBasR.ttf'. with Aspose slides 3.0.0 for Java (Linux only)


I am trying trying to merge two PPTX presentations but the addClone method throws java.lang.IllegalStateException exception. Interestingly this exception only happens with Linux, the same code works just fine with Windows.

Stack trace:

Caused by: java.lang.IllegalStateException: Cannot find resource ‘/Aspose/Resources/GenBasR.ttf’.
at com.aspose.slides.a.B.if(Unknown Source)
at Source)
at com.aspose.slides.a.l.h.char(Unknown Source)
at com.aspose.slides.a.l.h.byte(Unknown Source)
at Source)
at Source)
at Source)
at Source)
at com.aspose.slides.lU.(Unknown Source)
at Source)
at Source)
at Source)
at Source)
at Source)
at Source)
at com.aspose.slides.Gm.(Unknown Source)
at Source)
at Source)
at Source)
at Source)
at Source)
at Source)
at Source)
at Source)
at Source)
at com.aspose.slides.MasterSlidesEx.if(Unknown Source)
at com.aspose.slides.MasterSlidesEx.addClone(Unknown Source)
at com.aspose.slides.SlidesEx.if(Unknown Source)
at com.aspose.slides.SlidesEx.addClone(Unknown Source)
<!–[if gte mso 9]>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val="–"/>
<m:smallFrac m:val=“off”/>
<m:lMargin m:val=“0”/>
<m:rMargin m:val=“0”/>
<m:defJc m:val=“centerGroup”/>
<m:wrapIndent m:val=“1440”/>
<m:intLim m:val=“subSup”/>
<m:naryLim m:val=“undOvr”/>
<![endif]–><!–[if gte mso 10]>

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-fareast-language:EN-US;}


Hi Tapio,

Thanks for your interest in Aspose.Slides.

I have observed the stack trace shared by you and like to share that exception that is arising seems due to missing font on your end in Linux environment. You need to install the used fonts in Linux environment as well. I also like to add that Aspose.Slides for Java allows to load font from custom location as well without installing them. You can copy the fonts from Windows environment to your Java environment and try loading them in your application using the the code snippet shared over this link . Please also try using our latest version of Aspose.Slides for Java 6.7.0 on your end. I will also share the new hotfix of Aspose.Slides for Java 6.7.1 by December 10, 2012 and suggest you to please try using that.

If there is still issue on your end by using mentioned latest versions then please share the sample code, source presentation and complete platform information with us for further investigation.

Many Thanks,