title: java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/Workbook problem
body: <p>I have finished a project in java that use POI 4.0.1 library. I am using a Mac, Eclipse and Java 8 update 201. I do not use Maven or similar. I’ve already read all the 22 past post about the argument but I can’t find a solution. When I test the program (composed by 10 classes with the main) with Eclipse, no problem. All it’s work. But when I try to launch the application from the command line I obtain the following error:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/Workbook
  at Applicazione.main(Applicazione.java:17)
  Caused by: java.lang.ClassNotFoundException: org.apache.poi.ss.usermodel.Workbook
  at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
  ... 1 more
  </code></pre>
  
  <p>I've already imported in Eclipse all the useful jar from POI. In particular:</p>
  
  <ul>
  <li>POI-4.0.1.jar</li>
  <li>POI-ooxml.jar</li>
  <li>POI-excelant.jar</li>
  <li>POI-ooxml-schemas-4.0.1.jar</li>
  <li>POI-scratchpad.jar</li>
  </ul>
  
  <p>I tried various combinations of the previous jar. I tried to add xmlbeans-3.0.2.jar and others from lib folder. But nothing. In Eclipse it works but from command line no. 
  I also tried to move the POI folder in Java folder. Nothing is changed.</p>
  
  <p>I also found a file in my project named .classpath. If it can be helpful the content is the following:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;classpath&gt;
  &lt;classpathentry kind="con"      path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/&gt;
  &lt;classpathentry kind="src" path="src"/&gt;
  &lt;classpathentry kind="lib" path="/Users/path/Desktop/App/poi-4.0.1/poi-4.0.1.jar"/&gt;
  &lt;classpathentry kind="lib" path="/Users/path/Desktop/App/poi-4.0.1/poi-ooxml-4.0.1.jar"/&gt;
  &lt;classpathentry kind="lib" path="/Users/path/Desktop/App/poi-4.0.1/poi-examples-4.0.1.jar"/&gt;
  &lt;classpathentry kind="lib" path="/Users/path/Desktop/App/poi-4.0.1/poi-excelant-4.0.1.jar"/&gt;
  &lt;classpathentry kind="lib" path="/Users/path/Desktop/App/poi-4.0.1/poi-ooxml-schemas-4.0.1.jar"/&gt;
  </code></pre>
  
  <p>
  </p>
  
  <pre><code>&lt;/classpath&gt;
  </code></pre>
  
  <p>Thanks </p>