JAVA_HOME defined but maven2 compains it could not find it

Alan Pope alan at popey.com
Fri Oct 22 12:27:23 UTC 2010


On 22 October 2010 12:52, Tapas Mishra <mightydreams at gmail.com> wrote:
> JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.20/bin"
> export JAVA_HOME
>

That's wrong. It should point to the directory _above_ bin, not bin itself.

> Error: JAVA_HOME is not defined correctly.

^^ this error is correct.

>  We cannot execute /usr/lib/jvm/java-6-sun-1.6.0.20/bin/bin/java
>

^^ Observe the "/bin/bin/java" on the end of that. That's because you
specified the trailing /bin in your JAVA_HOME.

Al.




More information about the ubuntu-users mailing list