title: Creation of jar failing in Intelij: The Java JAR file “ObjectFinder.jar” could not be launched
body: <p>I'm trying to create a jar file and currently receive the &quot;The Java JAR file “ObjectFinder.jar” could not be launched.&quot; error when clicking. I have followed the procedures that are provided on the web and on stackoverflow but to no avail. Does anyone have any idea what I am missing:</p>
  <p>File -&gt; project -&gt; artifacts -&gt; + -&gt; jar -&gt; from modules with dependencies -&gt; main class -&gt; main (selected from the Main Class drop down) -&gt; apply</p>
  <p>Build -&gt; build artifacts</p>
  <p>The structure of my project and the content of the manifest is:</p>
  <p><a href="https://i.stack.imgur.com/byytU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/byytU.png" alt="enter image description here" /></a></p>
  <p>and the content of the main file is:</p>
  <pre><code>public class Main {
      public static void main(String[] args) {
          InterfaceWindow interfaceWindow = new InterfaceWindow();
          interfaceWindow.setInterfaceWindow();
      }
  }
  </code></pre>
  <p>I've double clicked the jar file and used java -jar ObjectFinder.jar  to attempt to run it.</p>