title: Creating a JAR file and running on Raspberry PI
body: <p>This is a very common question and there are chances that this might be marked as Duplicate, but even after reviewing a lot of answers and posts from stackoverflow and other communities, the problem just doesn't solve.</p>
  <p>I have created a Project in my NetBeans IDE 7.3 and I Build the Project to get the JAR file by pressing SHIFT+F11. The next step, I perform is through WinSCP I copy the JAR file from my Windows Machine to the directory (/home/pi) in Raspberry PI.
  Now, I am in the directory in my Raspberry PI where the JAR file is present and in the terminal I run the command</p>
  <pre><code>java -jar ProjectFinal.jar
  </code></pre>
  <p>I get the error &quot;Could not find or load main class&quot;.</p>
  <p>The contents of my JAR are as shown below (in the form of directories):
  lib (contains all the libraries)
  META-INF (contains a MANIFEST.MF file and the contents looks fine) and the contents are shown below:</p>
  <pre><code>Manifest-Version: 1.0
  Ant-Version: Apache Ant 1.8.4
  Created-By: 1.7.0_17-b02 (Oracle Corporation)
  Class-Path: lib/super-csv-2.1.0.jar
  X-COMMENT: Main-Class will be added automatically by build
  Main-Class: projectfinal.ProjectFinal**
  </code></pre>
  <p>and finally projectfinal (contains all the class files). I tried to change the contents of the MANIFEST.MF file by following <a href="http://docs.oracle.com/javase/tutorial/deployment/jar/appman.html" rel="noreferrer">this link</a>. But this couldn't help me either.
  Please suggest me any ideas that could get me out of this. It could be really helpful. I can share the code if it is needed.
  I am using JRE version 7.
  Any questions/inputs/ideas is deeply appreciated.</p>
  <p><strong>Please help.</strong></p>
  <p>Thanks a lot in advance.</p>