title: Raspberry Pi and Java Installation
body: <p>I am attempting to install Oracle's Java jdk and compile and run java programs on my Raspberry pi. Basically I am getting a <strong><em>Error: Could not find or load main class</em></strong> error when I try to run a <strong>java myfile.java</strong>.  </p>
  
  <p>The steps I took were:</p>
  
  <ol>
  <li>Downloaded "wheezy" from the Raspberry Pi website that allows java (soft float)</li>
  <li>Downloaded the arm jdk from Oracle's website</li>
  <li>Used the command <code>tar -zxvf jdk-7u6-linux-arm-sfp.gz</code> to unzip the jdk</li>
  <li>Wrote, compiled, and then attempted to run a simple java program</li>
  </ol>
  
  <p>On a side note, because the wheezy image was only 2GB, I partitioned the other 2GB of my 4GB SD card for some additional storage. That is where I unzipped my jdk and now when I want to run <strong>java</strong> or <strong>javac</strong> I have to use the full path. How can you modify the installation so that you can simply type in <strong>java</strong> with out the full path. Doesn't that have something to do with where the binaries are installed? </p>