title: Cant run java program on raspberry Pi
body: <p>I have downloaded the latest OS for the pi from here <a href="http://downloads.raspberrypi.org/raspbian_latest" rel="nofollow">http://downloads.raspberrypi.org/raspbian_latest</a></p>
  
  <p>Then i have downloaded the latest Java JDK to run my JavaFX application from <a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html" rel="nofollow">http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html</a> and selected the Hard Flat v6/v7 file.</p>
  
  <p>I have transferred and unzipped the JavaJDK onto my Pi.</p>
  
  <p>Now if i execute this command on my local machine, my application starts</p>
  
  <pre><code>Java -jar program_name.jar
  </code></pre>
  
  <p>But if i run the same command on the Pi, i get an error saying</p>
  
  <blockquote>
    <p>Could not find or load main class application.Main</p>
  </blockquote>
  
  <p>If i change the .jar file into a .zip, i can clearly see a directory called application, and file called Main.class</p>
  
  <p>So why is my program working on my (windows 10) machine, whether i run it from eclipse or the command line, but not on the raspberry Pi?</p>