tapas_mishra
October 22nd, 2010, 12:51 PM
/usr/lib/jvm/java-6-sun-1.6.0.20/bin
is the directory where my Java resides.
in the .bashrc have following
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.
echo $JAVA_HOME
/usr/lib/jvm/java-6-sun-1.6.0.20/bin
then Installed
aptitude install maven2when I run mvn get error
Error: JAVA_HOME is not defined correctly.
We cannot execute /usr/lib/jvm/java-6-sun-1.6.0.20/bin/bin/javaI am not having any clue as what is this error?
As to me JAVA_HOME seems to be defined.
Also worth mentioning
which java
/usr/bin/java
is the directory where my Java resides.
in the .bashrc have following
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.
echo $JAVA_HOME
/usr/lib/jvm/java-6-sun-1.6.0.20/bin
then Installed
aptitude install maven2when I run mvn get error
Error: JAVA_HOME is not defined correctly.
We cannot execute /usr/lib/jvm/java-6-sun-1.6.0.20/bin/bin/javaI am not having any clue as what is this error?
As to me JAVA_HOME seems to be defined.
Also worth mentioning
which java
/usr/bin/java