I try to install GlassFish on Ubuntu, and I get 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
Where is the problem and how to solve it?
I have also read "Problems installing Java EE SDK on Linux", but it doesn't work.
N.B. Before reinstalling Ubuntu it works fine. This problem comes after reinstallation.
javac. That should be found, though it will return an error because there are no input files. If it is not found, check whether there is something in /opt/jdk1.6.0_20/bin. - extraneonjar, orjavaorjavac? - Jesper