JAVA_HOME defined but maven2 compains it could not find it
Alan Pope
alan at popey.com
Fri Oct 22 13:42:55 UTC 2010
On 22 October 2010 14:27, Tapas Mishra <mightydreams at gmail.com> wrote:
> /usr/bin/java
> not java defined in $JAVA_HOME/bin.java
>
/usr/bin/java is almost certainly a symbolic link...
alan at hactar:~$ ls -l /usr/bin/java
lrwxrwxrwx 1 root root 22 2010-02-07 14:17 /usr/bin/java ->
/etc/alternatives/java
Which in my case leads me to this location..
alan at hactar:~$ ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 40 2010-02-07 14:17 /etc/alternatives/java ->
/usr/lib/jvm/java-6-openjdk/jre/bin/java
To modify yours I recommend reading this page:-
https://help.ubuntu.com/community/Java -> "Choosing the default Java to use"
Cheers,
Al.
More information about the ubuntu-users
mailing list