B4J Question Error in Creating autonomous Packages - JasperReports

virpalacios

Active Member
Licensed User
Longtime User
Hi All, good day, good night or good afternoon, after using my App JasperReports and going OK, I decided to create an autonomous package, I got this message

"module-info:java:27 the service implementation type must be a subtype of the service interface type, or have a public static no-args method named "provider" returning the service implementation"
"provides org.apache.poi.extractor.ExtractorProvider with org.apache.poi.extractor.MainExtractorFactory, org.apache.poi.ooxml.extractor.POIXMLExtractorFactory; provides org.apache.poi.sl.draw.ImageRenderer with org.apache.poi.sl.draw.BitmapImageRenderer, org.apache.poi.xslf.draw.SVGImageRenderer; provides org.apache.poi.ss.usermodel.WorkbookProvider with org.apache.poi.hssf.usermodel.HSSFWorkbookFactory, org.apache.poi.xssf.usermodel.XSSFWorkbookFactory;opens org.apache.xmlbeans.metadata.system.sXMLTOOLS; opens org.apache.xmlbeans.metadata.system.sXMLSCHEMA;opens org.apache.xmlbeans.metadata.system.sXMLLANG;opens org.apache.xmlbeans.metadata.system.sXMLCONFIG;opens org.apache.poi.schemas.ooxml.system.ooxml;}"

After removing elements related to jaspereports I was able to create the Package.


After a Search I found a Post from Erel that states that Autonomous Packager is not compatible with JasperReport (sorry I lost this url), He said then that is theses app has to be running in the classic way "java -jar app.jar". However I read other threats that include some steps with groovy in jasperesports.xml or creating a variable.

I appreciate your comments, and to know if is still valid to use the traditional java -jar option or if there is a fix for autonomous package creator.

Best Regard

Virgilio 👋 :)
 
Last edited:
Top