JAVA_HOME defined but maven2 compains it could not find it

Tapas Mishra mightydreams at
Fri Oct 22 11:52:37 UTC 2010

is the directory where my Java resides.
in the .bashrc have following

export JAVA_HOME

/etc/environment and /etc/profile
have the default entries no changes with them.

 echo $JAVA_HOME

then Installed

aptitude install maven2

when I run mvn get error

Error: JAVA_HOME is not defined correctly.
  We cannot execute /usr/lib/jvm/java-6-sun-

I am not having any clue as what is this error?
As to me JAVA_HOME seems to be defined.

More information about the ubuntu-users mailing list