I am getting the following error,
java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlObject
I'm using Maven and have included the poi and poi-ooxml dependencies. This installed the xmlBeans jar so i'm not sure why it isn't working.
These are the jars I currently have installed
Any help is appreciated
Gagravarr
48.5k11 gold badges114 silver badges158 bronze badges
asked Mar 28, 2018 at 13:45
-
Could you please check the contents of the jar and ensure the class exists? It's possible the type got moved to a different package or was removed.lordoku– lordoku2018年03月28日 13:48:18 +00:00Commented Mar 28, 2018 at 13:48
-
The class does exist but when I try open it i get the error 'invalid LOC header (bad signature)'Fridie3000– Fridie30002018年03月28日 13:51:02 +00:00Commented Mar 28, 2018 at 13:51
-
1Sounds like the jar is corrupted. This question's second answer may help: stackoverflow.com/questions/32090921/…lordoku– lordoku2018年03月28日 13:57:39 +00:00Commented Mar 28, 2018 at 13:57
-
That worked! Thank you :)Fridie3000– Fridie30002018年03月28日 14:06:23 +00:00Commented Mar 28, 2018 at 14:06
-
No problem, I'll go ahead and write an answer. Could you please up vote?lordoku– lordoku2018年03月28日 14:10:45 +00:00Commented Mar 28, 2018 at 14:10
1 Answer 1
It sounds like the jar is corrupt. Try the second answer from the following question: Deploying Maven project throws java.util.zip.ZipException: invalid LOC header (bad signature)
In other words:
- Try removing the contents of the local repository directory. On Windows this is located at: C:\Users[username].m2\repository folder.
- In Eclipse, right-click on the project and select Maven->Update Project. Ensure the Force Update of Snapshots/Releases is selected.
answered Mar 28, 2018 at 14:13
Comments
Explore related questions
See similar questions with these tags.
default