JAVA_HOME defined but maven2 compains it could not find it
mightydreams at gmail.com
Fri Oct 22 13:27:31 UTC 2010
On Fri, Oct 22, 2010 at 5:57 PM, Alan Pope <alan at popey.com> wrote:
> On 22 October 2010 12:52, Tapas Mishra <mightydreams at gmail.com> wrote:
>> 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-188.8.131.52/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.
Ok I removed bin and the things seem to work now.
But when I do
which java the output is
not java defined in $JAVA_HOME/bin.java
More information about the ubuntu-users