title: Getting exception while running Executable jar file in Eclipse
body: <p>I am getting errors when trying to run the jar from Eclipse. It is working fine when running from the windows command prompt. However, while trying to run from Java source code it shows the following exceptions:</p>
  <pre><code>Exception in thread &quot;main&quot; java.lang.reflect.InvocationTargetException
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
  Caused by: java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils
      at edu.ucla.cs.examplecheck.utils.PatternUtils.loadPattern(PatternUtils.java:37)
      at edu.ucla.cs.examplecheck.APIMisuseDetector.main(APIMisuseDetector.java:48)
      ... 5 more
  Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.IOUtils
      at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
      ... 7 more
  </code></pre>