title: Main class not found, IntelliJ building a jar
body: <p>I am running into problems when I try to run the jar file created in IntelliJ.<br>
  I followed the steps laid out here: <a href="https://stackoverflow.com/questions/1082580/how-to-build-jars-from-intellij-properly">How to build jars from IntelliJ properly?</a> and searched far and wide for other people with the same problem using IntelliJ, and found no solution.<br>
  In the menu Project Structure>Artifacts section I have the package and main class name, and I have also tried specifying the 'Class path' bit using a relative and absolute path both to the source file and the .class file (which seems hidden in the IntelliJ Project display tree..), but even with all this (I also make sure to rebuild the jar every time I change something) I get the "Cannot find the main class. Program will exit." message when I try to run the jar.</p>
  
  <p>In the main project folder, there is src and out.<br>
  out contains 'production' with the package tree and the class files<br>
  out also contains 'artifacts' with the jar folder and jar executable<br>
  src contains a folder of images, the META-INF and the package tree.<br>
  the first folder in the package contains the main class, so src/ravelDemo/RavelDemoMain.java  </p>
  
  <p>in Project Settings>Artifacts, the main class is listed as ravelDemo.RavelDemoMain<br>
  currently, the class path is out\production\RavelSequence v1.03\ravelDemo\ but this and every other class path I've specified (or left blank) doesn't seem to point to the right place. (RavelSequence v1.03 is the name of the project).</p>
  
  <p>What am I doing wrong?</p>