java.lang.ClassNotFoundException: org.openxmlformats.schemas.wordprocessingml.x2006.main.impl.CTPIm

简介: java.lang.ClassNotFoundException: org.openxmlformats.schemas.wordprocessingml.x2006.main.impl.CTPIm
  • 将poi-ooxml-schemas-x.x.jar换成ooxml-schemas-1.1.jar 就好啦


20210129173141205.png

根据这个回答,poi提供的那个ooxml-schemas.jar包是精简版的,为了节省空间,里面放的只有一些常用的模块,所以要引用另外一些功能的话就需要引用完全版的ooxml-schemas.jar包。另外,3.5和3.6版本的poi对应的完整版的jar包是1.0版的,如果要用3.7及以上的,就需要用ooxml-schemas-1.1.jar这个包了,这样导入之后果然就好了。


总结一下,遇到这个问题需要导入ooxml-schemas-1.1.jar这个包,最好去掉poi提供的那个同名的包,如:去掉poi-ooxml-schemas-3.12-20150511.jar这个包。

相关文章
|
6月前
Exception in thread “main“ java.lang.NoClassDefFoundError: freemarker/template/Configuration
Exception in thread “main“ java.lang.NoClassDefFoundError: freemarker/template/Configuration
177 0
|
2月前
|
Java
flyway报错Caused by: java.lang.NoSuchMethodError: org.flywaydb.core.api.configuration.FluentConfigurat
flyway报错Caused by: java.lang.NoSuchMethodError: org.flywaydb.core.api.configuration.FluentConfigurat
40 2
|
6月前
|
Java
springboot项目出现Exception in thread “main“ java.lang.NoClassDefFoundError: javax/servlet/Filter
springboot项目出现Exception in thread “main“ java.lang.NoClassDefFoundError: javax/servlet/Filter
246 0
|
Java Spring
【已解决】Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.
【已解决】Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.
3695 1
【已解决】Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.
|
Java 应用服务中间件 Apache
nested exception is java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntim
nested exception is java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntim
364 0
|
Java 测试技术
Cannot instantiate test(s): java.lang.SecurityException: Prohibited package name: java
Cannot instantiate test(s): java.lang.SecurityException: Prohibited package name: java
Cannot instantiate test(s): java.lang.SecurityException: Prohibited package name: java
|
Java
java.lang.SecurityException: class “org.bouncycastle.asn1.DERObject“‘s signer information does not m
java.lang.SecurityException: class “org.bouncycastle.asn1.DERObject“‘s signer information does not m
358 0
|
Java 应用服务中间件
Caused by: java.lang.ClassNotFoundException: org.apache.solr.handler.dataimportHandler
Caused by: java.lang.ClassNotFoundException: org.apache.solr.handler.dataimportHandler
294 0
|
Java Maven
java.lang.NoSuchMethodError: org.springframework.core.ResolvableType.clearCache
java.lang.NoSuchMethodError: org.springframework.core.ResolvableType.clearCache
229 0
java.lang.NoSuchMethodError: org.springframework.core.ResolvableType.clearCache