Exception in thread "main" java.lang.NoClassDefFoundError: org/jvnet/staxex/XMLStreamReaderEx
<p>I am getting an exception, but it isn't a code problem, it is a settings/dependencies problem.</p>

<p>I have a work and home computer.  The project files are synced via OneDrive.  Both computers are running Mac OSX 10.11.4, jdk1.8.0_66.jdk and IntelliJ IDEA 2016.1.1</p>

<p>The code works at my work but at home I get the exception:</p>

<pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/jvnet/staxex/XMLStreamReaderEx
    at com.sun.xml.stream.buffer.stax.StreamReaderBufferCreator.storeElementAndChildren(StreamReaderBufferCreator.java:195)
    at com.sun.xml.stream.buffer.stax.StreamReaderBufferCreator.storeDocumentAndChildren(StreamReaderBufferCreator.java:179)
    at com.sun.xml.stream.buffer.stax.StreamReaderBufferCreator.store(StreamReaderBufferCreator.java:160)
    at com.sun.xml.stream.buffer.stax.StreamReaderBufferCreator.create(StreamReaderBufferCreator.java:103)
    at com.sun.xml.stream.buffer.MutableXMLStreamBuffer.createFromXMLStreamReader(MutableXMLStreamBuffer.java:134)
    at com.sun.xml.stream.buffer.XMLStreamBuffer.createNewBufferFromXMLStreamReader(XMLStreamBuffer.java:419)
    at com.sun.xml.ws.api.addressing.WSEndpointReference.&lt;init&gt;(WSEndpointReference.java:183)
    at com.sun.xml.ws.api.addressing.WSEndpointReference.&lt;init&gt;(WSEndpointReference.java:175)
    at com.sun.xml.ws.api.addressing.AddressingVersion.&lt;init&gt;(AddressingVersion.java:443)
    at com.sun.xml.ws.api.addressing.AddressingVersion.&lt;init&gt;(AddressingVersion.java:72)
    at com.sun.xml.ws.api.addressing.AddressingVersion$1.&lt;init&gt;(AddressingVersion.java:74)
    at com.sun.xml.ws.api.addressing.AddressingVersion.&lt;clinit&gt;(AddressingVersion.java:74)
    at com.sun.xml.ws.security.addressing.policy.WsawAddressingPrefixMapper.&lt;clinit&gt;(WsawAddressingPrefixMapper.java:63)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
......
</code></pre>

<p>I have stax2-api.jar and stax-api.jar in the library/provided of my project. I have VPN'd to work and looked at the project setup and can't see any differences.</p>

<p>How can I work out what the difference is between the two machines to get the code to work at home?</p>