title: Running JAR - Error: Could not find or load main class
body: <p>I cannot run my JAR file.
  I tried java -jar machines.jar, still getting thew same error.
  Tried from inside Intellij, again the same error. Please, i'm so desperate for a solution. I 'm just giving up.
  I have Screenshots, pom file, that you might need.
  Really, i'm working months on this, and now i just want to export it.
  If i'm about to have such SILLY problems with Java, i'm thinking of moving to c++./
  I feel ready on giving up on this and re-write it on c++. I'M THAT DESPERATE.</p>
  
  <p>PATH:
  PATH=C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\AdoptOpenJDK\jdk-11.0.4.11-hotspot\bin;C:\Program Files\AdoptOpenJDK\jre-11.0.4.11-hotspot\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\MySQL\MySQL Shell 8.0\bin\;C:\Program Files\JetBrains\IntelliJ IDEA 2019.2.3\bin;</p>
  
  <p>Tried with launcjer4j.
  About 20 times tried to build within Intellij. Really, i 'm beginning to feel very nervous and angry. I am working months with this project, it's my first one, i CAN'T EXPORT IT!</p>
  
  <p>Here is my pom.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  </code></pre>
  
  <p>http://maven.apache.org/xsd/maven-4.0.0.xsd">
      4.0.0</p>
  
  <pre><code>&lt;groupId&gt;Codey&lt;/groupId&gt;
  &lt;artifactId&gt;Machines&lt;/artifactId&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  
  &lt;build&gt;
      &lt;finalName&gt;Main&lt;/finalName&gt;
      &lt;resources&gt;
          &lt;resource&gt;
              &lt;directory&gt;src/main/resources&lt;/directory&gt;
          &lt;/resource&gt;
          &lt;resource&gt;
              &lt;directory&gt;src/main/java/FX&lt;/directory&gt;
          &lt;/resource&gt;
          &lt;resource&gt;
              &lt;directory&gt;src/main/java/FXMach&lt;/directory&gt;
          &lt;/resource&gt;
          &lt;resource&gt;
              &lt;directory&gt;src/main/java/FXGlob&lt;/directory&gt;
          &lt;/resource&gt;
          &lt;resource&gt;
              &lt;directory&gt;src/main/java&lt;/directory&gt;
          &lt;/resource&gt;
      &lt;/resources&gt;
      &lt;plugins&gt;
  
      &lt;/plugins&gt;
  &lt;/build&gt;
  
  &lt;dependencies&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-assembly-plugin --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
  
          &lt;version&gt;3.1.1&lt;/version&gt;
      &lt;/dependency&gt;
  
  
      &lt;!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-c3p0 --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-c3p0&lt;/artifactId&gt;
          &lt;version&gt;5.4.6.Final&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- https://mvnrepository.com/artifact/com.jfoenix/jfoenix --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.jfoenix&lt;/groupId&gt;
          &lt;artifactId&gt;jfoenix&lt;/artifactId&gt;
          &lt;version&gt;9.0.9&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.codehaus.izpack&lt;/groupId&gt;
          &lt;artifactId&gt;izpack-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;5.1.3&lt;/version&gt;
      &lt;/dependency&gt;
  
  
      &lt;!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;mysql&lt;/groupId&gt;
          &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
          &lt;version&gt;8.0.17&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-core --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
          &lt;version&gt;5.4.4.Final&lt;/version&gt;
      &lt;/dependency&gt;
  
  
      &lt;!--            JavaFX 12.0.2           --&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.openjfx/javafx-controls --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
          &lt;artifactId&gt;javafx-controls&lt;/artifactId&gt;
          &lt;version&gt;12.0.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.openjfx/javafx-graphics --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
          &lt;artifactId&gt;javafx-graphics&lt;/artifactId&gt;
          &lt;version&gt;12.0.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.openjfx/javafx-base --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
          &lt;artifactId&gt;javafx-base&lt;/artifactId&gt;
          &lt;version&gt;12.0.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.openjfx/javafx-fxml --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
          &lt;artifactId&gt;javafx-fxml&lt;/artifactId&gt;
          &lt;version&gt;12.0.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.openjfx/javafx-web --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
          &lt;artifactId&gt;javafx-web&lt;/artifactId&gt;
          &lt;version&gt;12.0.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.openjfx/javafx-media --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
          &lt;artifactId&gt;javafx-media&lt;/artifactId&gt;
          &lt;version&gt;12.0.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.openjfx/javafx-swing --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
          &lt;artifactId&gt;javafx-swing&lt;/artifactId&gt;
          &lt;version&gt;12.0.2&lt;/version&gt;
      &lt;/dependency&gt;
  
  &lt;/dependencies&gt;
  </code></pre>
  
  <p></p>
  
  <p>Error: Could not find or load main class Main
  <a href="https://i.stack.imgur.com/y3WYT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y3WYT.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/qUysY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qUysY.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/Fs0vS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Fs0vS.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/fCdKf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fCdKf.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/uKIay.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uKIay.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/NGYT1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NGYT1.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/hvXpZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hvXpZ.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/TfYUL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TfYUL.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/0TjlF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0TjlF.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/7ufgs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7ufgs.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/okqhb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/okqhb.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/MaMah.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MaMah.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Id1li.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Id1li.png" alt="enter image description here"></a></p>