Error! How to install glassfish in ubuntu 9.04??

Posted by artaxerxe on Stack Overflow See other posts from Stack Overflow or by artaxerxe
Published on 2010-05-20T09:45:14Z Indexed on 2010/05/20 9:50 UTC
Read the original article Hit count: 539

Filed under:
|

I try to install GlassFish on my ubuntu, and gets the error:

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

when I type:

echo $PATH

it prints out:

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/jdk1.6.0_20:/opt/jdk1.6.0_20/bin

Can anybody explain me where is the problem and how to solve it?

i have also read this topic, but it doesn't work.

N.B. Before to reinstall Ubuntu it works fine. This problem comes after reinstallation.

© Stack Overflow or respective owner

Related posts about java

Related posts about ubuntu