0

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
5
  • 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. Commented 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)' Commented Mar 28, 2018 at 13:51
  • 1
    Sounds like the jar is corrupted. This question's second answer may help: stackoverflow.com/questions/32090921/… Commented Mar 28, 2018 at 13:57
  • That worked! Thank you :) Commented Mar 28, 2018 at 14:06
  • No problem, I'll go ahead and write an answer. Could you please up vote? Commented Mar 28, 2018 at 14:10

1 Answer 1

2

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:

  1. Try removing the contents of the local repository directory. On Windows this is located at: C:\Users[username].m2\repository folder.
  2. 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

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.