Expand my Community achievements bar.

SOLVED

Convert Images to PPT with the help of Apache poi

Avatar

Level 2

I'm using Apache POI Library (org.apache.poi.xslf.usermodel.XMLSlideShow;) for creating PPTs with existing DAM images. The code is done. But the conflicts is happening at runtime while resolving bundle .

The POI library is part of AEM core library which is resolving dependency automatically with core library as :

org.apache.poi.xslf.usermodel,version=3.0.0 from com.adobe.granite.poi (73)

The version I'm using in code is POI 3.9 but as it's taking from core library it's not finding desired method giving NoSuchMethodError.

Please suggest any way to resolve this.    

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Create a wrapper bundle[1] for you version of POI and use explicit import for the packages in your bundle.

HTH.

Thanks

Wasil

[1] How to Wrap Bundles · bndtools/bndtools Wiki · GitHub

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

Create a wrapper bundle[1] for you version of POI and use explicit import for the packages in your bundle.

HTH.

Thanks

Wasil

[1] How to Wrap Bundles · bndtools/bndtools Wiki · GitHub