java.lang.ClassNotFoundException: com.google.common.collect.BiMap
2023-12-19 06:44:29
2023-12-18 23:20:45,663 DEBUG org.docx4j.openpackaging.io3.Load3 - resolved uri: word/styles.xml
2023-12-18 23:20:45,663 DEBUG org.docx4j.openpackaging.contenttype.ContentTypeManager - Found content type 'application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml' for /word/styles.xml
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/BiMap
at org.docx4j.openpackaging.contenttype.ContentTypeManager.CreateStyleDefinitionsPartObject(ContentTypeManager.java:527)
at org.docx4j.openpackaging.contenttype.ContentTypeManager.newPartForContentType(ContentTypeManager.java:385)
at org.docx4j.openpackaging.contenttype.ContentTypeManager.getPart(ContentTypeManager.java:279)
at org.docx4j.openpackaging.io3.Load3.getRawPart(Load3.java:470)
at org.docx4j.openpackaging.io3.Load3.getPart(Load3.java:371)
at org.docx4j.openpackaging.io3.Load3.addPartsFromRelationships(Load3.java:279)
at org.docx4j.openpackaging.io3.Load3.getPart(Load3.java:399)
at org.docx4j.openpackaging.io3.Load3.addPartsFromRelationships(Load3.java:279)
at org.docx4j.openpackaging.io3.Load3.get(Load3.java:196)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:462)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:379)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:345)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:310)
at org.docx4j.openpackaging.packages.WordprocessingMLPackage.load(WordprocessingMLPackage.java:184)
at word.DocxToDoc_Docx4j.main(DocxToDoc_Docx4j.java:57)
Caused by: java.lang.ClassNotFoundException: com.google.common.collect.BiMap
at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 15 more
<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>21.0</version>
</dependency>
文章来源:https://blog.csdn.net/spencer_tseng/article/details/135073987
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!