title: java.lang.NoClassDefFoundError: org/json/simple/parser/ParseException while trying to run jar file
body: <p>I'm working on a project where I've to deliver <code>.jar</code> file to the user. I'm using <strong>Intellij IDEA</strong> and as build system I'm using <strong>Maven</strong>. I've added <code>json-simple</code> as a dependency.</p>
  
  <pre><code>&lt;dependency&gt;
              &lt;groupId&gt;com.googlecode.json-simple&lt;/groupId&gt;
              &lt;artifactId&gt;json-simple&lt;/artifactId&gt;
              &lt;version&gt;1.1.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>My project works fine while I run from my IDE, but  while I try to run my jar file from command line <code>java -jar project.jar</code> it shows the following error</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/json/simple/parser/ParseException
      at utils.PropertiesFile.readProperties(PropertiesFile.java:82)
      at utils.PropertiesFile.&lt;init&gt;(PropertiesFile.java:46)
      at NewApplication.&lt;clinit&gt;(NewApplication.java:26)
  Caused by: java.lang.ClassNotFoundException: org.json.simple.parser.ParseException
      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)
      ... 3 more
  </code></pre>
  
  <p>I've other dependencies added to my <code>pom.xml</code>, jar file runs from the terminal without the <strong>json-simple</strong> dependency. I've found many same types of questions but all saying that json-simple is not added to build path but my problem with only jar file. While other dependencies work fine with the jar file but what problem with this simple-json?</p>
  
  <p>My project structure is here and configuration for building jar
  <a href="https://i.stack.imgur.com/MjUCs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MjUCs.png" alt="enter image description here"></a></p>