title: Mac OS unable to run .Jar file
body: <p>So I've been writing this little code, and it works -- but I have to type in the whole <code>Computer;~ User$ java MyProject</code> and change the path every time, so I decided to stick it in a <code>.jar</code> file (so I could just run it on a double click). I am an Intellij user on running macos. I created the file, <code>File/Project Structure/artifacts/+/myMain</code> etc and now have a <code>.jar</code> file sitting on my desktop. When I run the jar inside of Intellij, or run the jar using</p>
  <p><code>java -jar /Users/Me/Desktop/MyProject/out/artifacts/MyProject_jar/MyProject.jar</code>, it works fine.</p>
  <p>However, when I:</p>
  <ul>
  <li><p><em>Run it from the terminal with <code>java -jar MyProject.jar</code> I get <code>Error: Unable to access jarfile MyProject.jar</code></em>
  <strong>^^Resolved</strong> - using the <strong><code>chmod 755 MyProject.jar</code></strong> command, see comment for further details</p>
  </li>
  <li><p>Or run it on right click with Jar launcher I get <code>The Java JAR file &quot;MyProject.jar&quot; could not be launched. Check the Console for possible error messages.</code> There are no error messages in the console.</p>
  </li>
  </ul>
  <p>And before anyone says it, I have Java 13 and the project is running on Java 13 -- it's the default that my computer has, and has been updated automatically ever since installation.</p>
  <p>How would I be able to launch this file, and what could be stopping it from doing so?</p>