Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents from any .NET(C#, VB.NET, ASP.NET, .NET Core) application and Java (J2SE and J2EE) application.

Mon Aug 02, 2021 7:55 am

My OS is MacOS.Follow the Spire.Presentation for java tutorial edit demo code.But there was an exception.
Demo is Java create PowerPoint chart.
Code: Select all
Warning: the font "Times" is not available, so "Lucida Bright" has been substituted, but may have unexpected appearance or behavor. Re-enable the "Times" font to remove this warning.
Warning: the font "Times" is not available, so "Lucida Bright" has been substituted, but may have unexpected appearance or behavor. Re-enable the "Times" font to remove this warning.
Exception in thread "main" java.lang.ExceptionInInitializerError
   at com.spire.presentation.packages.sprxVd.spr                              (Font.java:410)
   at com.spire.presentation.packages.sprxVd.<init>(Font.java:398)
   at com.spire.presentation.packages.sprxVd.<init>(Font.java:380)
   at com.spire.presentation.packages.sprxVd.<init>(Font.java:402)
   at com.spire.presentation.packages.sprlKb.<init>(Unknown Source)
   at com.spire.presentation.packages.sprKob.spr                              (Unknown Source)
   at com.spire.presentation.packages.sprKob.spr                              (Unknown Source)
   at com.spire.presentation.packages.sprKob.spr                              (Unknown Source)
   at com.spire.presentation.packages.sprSwb.spr               (Unknown Source)
   at com.spire.presentation.packages.sprSwb.spr                              (Unknown Source)
   at com.spire.presentation.packages.sprSwb.spr                              (Unknown Source)
   at com.spire.presentation.packages.sprSwb.spr                              (Unknown Source)
   at com.spire.presentation.packages.sprSwb.<init>(Unknown Source)
   at com.spire.presentation.packages.sprNub.spr                              (Unknown Source)
   at com.spire.presentation.packages.sprNub.spr                              (Unknown Source)
   at com.spire.presentation.packages.sprNub.spr                              (Unknown Source)
   at com.spire.presentation.packages.sprpJa.spr                              (Unknown Source)
   at com.spire.presentation.GroupShape.spr                              (Unknown Source)
   at com.spire.presentation.packages.sprjUb.spr                              (Unknown Source)
   at com.spire.presentation.packages.sprjUb.spr                              (Unknown Source)
   at com.spire.presentation.packages.sprjUb.spr                              (Unknown Source)
   at com.spire.presentation.packages.sprHWb.spr                              (Unknown Source)
   at com.spire.presentation.packages.sprHWb.spr                              (Unknown Source)
   at com.spire.presentation.packages.sprHWb.spr                              (Unknown Source)
   at com.spire.presentation.packages.sprHWb.spr                              (Unknown Source)
   at com.spire.presentation.packages.sprHWb.spr                              (Unknown Source)
   at com.spire.presentation.Presentation.saveToFile(Unknown Source)
   at com.example.demo.ppt.CreatePPT.main(CreatePPT.java:30)
Caused by: class com.spire.presentation.packages.sprzId: FontFamily 'Serif' not found
Parameter name: Serif
com.spire.presentation.packages.sprYUd.<init>(FontFamily.java:328)
com.spire.presentation.packages.sprYUd.<init>(FontFamily.java:312)
com.spire.presentation.packages.sprYUd.<init>(FontFamily.java:379)
com.spire.presentation.packages.sprYUd.<clinit>(FontFamily.java:1147)
com.spire.presentation.packages.sprxVd.spr                              (Font.java:410)
com.spire.presentation.packages.sprxVd.<init>(Font.java:398)
com.spire.presentation.packages.sprxVd.<init>(Font.java:380)
com.spire.presentation.packages.sprxVd.<init>(Font.java:402)
com.spire.presentation.packages.sprlKb.<init>(Unknown Source)
com.spire.presentation.packages.sprKob.spr                              (Unknown Source)
com.spire.presentation.packages.sprKob.spr                              (Unknown Source)
com.spire.presentation.packages.sprKob.spr                              (Unknown Source)
com.spire.presentation.packages.sprSwb.spr               (Unknown Source)
com.spire.presentation.packages.sprSwb.spr                              (Unknown Source)
com.spire.presentation.packages.sprSwb.spr                              (Unknown Source)
com.spire.presentation.packages.sprSwb.spr                              (Unknown Source)
com.spire.presentation.packages.sprSwb.<init>(Unknown Source)
com.spire.presentation.packages.sprNub.spr                              (Unknown Source)
com.spire.presentation.packages.sprNub.spr                              (Unknown Source)
com.spire.presentation.packages.sprNub.spr                              (Unknown Source)
com.spire.presentation.packages.sprpJa.spr                              (Unknown Source)
com.spire.presentation.GroupShape.spr                              (Unknown Source)
com.spire.presentation.packages.sprjUb.spr                              (Unknown Source)
com.spire.presentation.packages.sprjUb.spr                              (Unknown Source)
com.spire.presentation.packages.sprjUb.spr                              (Unknown Source)
com.spire.presentation.packages.sprHWb.spr                              (Unknown Source)
com.spire.presentation.packages.sprHWb.spr                              (Unknown Source)
com.spire.presentation.packages.sprHWb.spr                              (Unknown Source)
com.spire.presentation.packages.sprHWb.spr                              (Unknown Source)
com.spire.presentation.packages.sprHWb.spr                              (Unknown Source)
com.spire.presentation.Presentation.saveToFile(Unknown Source)
com.example.demo.ppt.CreatePPT.main(CreatePPT.java:30)
   at com.spire.presentation.packages.sprYUd.<init>(FontFamily.java:328)
   at com.spire.presentation.packages.sprYUd.<init>(FontFamily.java:312)
   at com.spire.presentation.packages.sprYUd.<init>(FontFamily.java:379)
   at com.spire.presentation.packages.sprYUd.<clinit>(FontFamily.java:1147)
   ... 28 more

whaoyang
 
Posts: 1
Joined: Mon Aug 02, 2021 7:41 am

Mon Aug 02, 2021 9:23 am

Hello,

Thanks for your inquiry.
According to the error message you provided, the exception is because the font "Serif" is not installed in your MacOS system. Please try again after installing this font

Sincerely
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1252
Joined: Mon Oct 19, 2020 3:04 am

Fri Aug 06, 2021 10:24 am

Hello,

Hope you are doing well.
Has your issue been resolved? Any feedback will be greatly appreciated.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1252
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.Presentation