'How to fix could not intialize class "org.apache.poi.xssf.usermodel.XSSFWorkbook" used poi-5.2.0 version

I have used (poi,poi-ooxml,poi-ooxml-lite) as 5.2.0, xmlbeans-5.0.3, commons-io-2.11.0 as jars but still getting could not intialize class org.apache.poi.xssf.usermodel.XSSFWorkbook. During runtime is poi-ooxml-5.2.0 expecting any other jar as dependency. Not used maven, dependencies just added in Build path and in lib. Is there anything missing. could someone help on it. poi-ooxml 5.2.1 or poi-ooxml-5.2.2, are there any runtime dependecies?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source