title: Installing java 5 in ubuntu 11.04
body: <p>i was trying to install java in ubuntu 11.04, i downloaded "jdk-1_5_0_22-linux-i586.bin" for this i used the tutorial <a href="http://flnkr.com/2012/02/18/installing-java-1-5-on-ubuntu-11-10/" rel="nofollow">this</a> and <a href="http://possiblygonewrong.blogspot.in/2010/11/setting-up-tomcat-server-adapter-in.html" rel="nofollow">this</a></p>
  
  <pre><code># sudo mv jdk-1_5_0_22-linux-i586.bin /usr/lib/jvm
  # cd /usr/lib/jvm
  # chmod +x jdk-1_5_0_22-linux-i586.bin
  # ./jdk-1_5_0_22-linux-i586.bin
  </code></pre>
  
  <p>when i execute the command     <code># ./jdk-1_5_0_22-linux-i586.bin</code> i do get the following error messages</p>
  
  <pre><code>Do you agree to the above license terms? [yes or no] 
  y
  Unpacking...
  ./jdk-1_5_0_22-linux-i586.bin: 394: cannot create install.sfx.3350: Permission denied
  Checksumming...
  /usr/bin/sum: install.sfx.3350: No such file or directory
  expr: syntax error
  expr: syntax error
  chmod: cannot access `install.sfx.3350': No such file or directory
  Extracting...
  ./jdk-1_5_0_22-linux-i586.bin: 424: ./install.sfx.3350: not found
  mkdir: cannot create directory `jdk1.5.0_22/jre': No such file or directory
  mkdir: cannot create directory `jdk1.5.0_22/jre/.systemPrefs': No such file or directory
  touch: cannot touch `jdk1.5.0_22/jre/.systemPrefs/.system.lock': No such file or directory
  chmod: cannot access `jdk1.5.0_22/jre/.systemPrefs/.system.lock': No such file or directory
  touch: cannot touch `jdk1.5.0_22/jre/.systemPrefs/.systemRootModFile': No such file or directory
  chmod: cannot access `jdk1.5.0_22/jre/.systemPrefs/.systemRootModFile': No such file or directory
  cd: 751: can't cd to jdk1.5.0_22
  </code></pre>
  
  <p>am new to ubuntu environment, am trying to setup eclipse with Java EE.</p>