title: Error! How to install GlassFish in Ubuntu 9.04?
body: <p>I try to install <a href="http://en.wikipedia.org/wiki/GlassFish" rel="nofollow noreferrer">GlassFish</a> on Ubuntu, and I get the error:</p>
  
  <blockquote>
    <p>Could not locate a suitable jar
    utility. Please ensure that you have
    Java 6 or newer installed on your
    system and accessible in your PATH or
    by setting JAVA_HOME</p>
  </blockquote>
  
  <p>when I type</p>
  
  <blockquote>
    <p>echo $PATH</p>
  </blockquote>
  
  <p>it prints out:</p>
  
  <p>/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:<b>/opt/jdk1.6.0_20</b>:/opt/jdk1.6.0_20/bin</p>
  
  <p>Where is the problem and how to solve it?</p>
  
  <p>I have also read "<a href="https://stackoverflow.com/questions/2224321/problems-installing-java-ee-sdk-on-linux">Problems installing Java EE SDK on Linux</a>", but it doesn't work.</p>
  
  <p>N.B. Before reinstalling Ubuntu it works fine. This problem comes after reinstallation.</p>