/usr/lib/jvm/java-6-sun-1.6.0.20/bin
is the directory where my Java resides.
in the .bashrc have following
Code:
JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.20/bin"
export JAVA_HOME
/etc/environment and /etc/profile
have the default entries no changes with them.
Code:
echo $JAVA_HOME
/usr/lib/jvm/java-6-sun-1.6.0.20/bin
then Installed
Code:
aptitude install maven2
when I run mvn get error
Code:
Error: JAVA_HOME is not defined correctly.
We cannot execute /usr/lib/jvm/java-6-sun-1.6.0.20/bin/bin/java
I am not having any clue as what is this error?
As to me JAVA_HOME seems to be defined.