title: Java installation issues on Ubuntu
body: <p>Trying to install Java (JDK 6) on my new Ubuntu system and getting some bizarro errors.  This is my first time ever using <em>any</em> flavor of Linux and so I'm sure it's a user issue (permissions or otherwise).</p>
  
  <p>I downloaded the BIN file directly off Oracle's site (Java SE 6u23 for 64-bit Linux). This defaulted to downloading to /home/myUserName/Downloads.</p>
  
  <p>From there I moved the file to /opt/java, which was a directory I created, because (as a Linux novice) that made sense to be the directory where Java should go.</p>
  
  <p>I then ran the following 2 commands, per instruction I found online for running BINs:</p>
  
  <pre><code>chmod +x jdk-6u23-linux-x64.bin
  sudo ./jdk-6u23-linux-x64.bin
  </code></pre>
  
  <p>Now, in my /opt/java directory I see both the BIN file and the <strong>jdk1.6.0_23</strong> directory that seems to be intact upon inspection.</p>
  
  <p><strong>But</strong>, when I open a new terminal and run <em>java -version</em>, I get:</p>
  
  <p>The program 'java' can be found in the following packages:<br/>
   - gcj-4.4-jre-headless<br/>
   - gcj-4.5-jre-headless<br/>
   - openjdk-6-jre-headless<br/>
  Try: sudo apt-get install </p>
  
  <p>What is going on here?!?</p>
  
  <p>(1) Was I wrong to try and make /opt/java my Java directory?<br/>
  (2) Did I run the wrong commands?<br/>
  (3) Is Java 1.6.0_23 even installed on my machine?<br/>
  (4) What are all those gcj-xxx-headless targets?!?!</p>
  
  <p>Thanks for any input!</p>