title: java Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
body: <p>I am able to compile my code and run it in my local (windows) machine using Eclipse. However, when I do it on my remote (ubuntu) machine, I get the following error:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
      at com.tools.App.main(App.java:36)
  Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.FileUtils
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      ... 1 more
  </code></pre>
  
  <p>I have added the following entry in my <code>pom.xml</code> file:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;commons-io&lt;/groupId&gt;
      &lt;artifactId&gt;commons-io&lt;/artifactId&gt;
      &lt;version&gt;2.4&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Can someone please help me understand what else I need to do to get this working? Thanks.</p>