Hi,

it seems, that JAVA_HOME is set correctly, at least maven complains that it 
cannot run /user/lib/jvm/java-6-sun/bin/java, while it has the directory info 
apparently from JAVA_HOME. What happens if you want to execute 
/user/lib/jvm/java-6-sun/bin/java from the shell directly?

Andreas

> -----Original Message-----
> From: Babak Shafian [mailto:[email protected]]
> Sent: Tuesday, September 08, 2009 5:17 PM
> To: [email protected]
> Subject: JAVA_HOME is not defined correctly!
> 
> 
> Hi Volks,
> 
> just installed Maven with Ubuntu. After typing mvn --version I get the
> following message:
> 
> Error: JAVA_HOME is not defined correctly.
>   We cannot execute /user/lib/jvm/java-6-sun/bin/java
> 
> And I'm pretty sure that the JAVA_HOME is correctly set in etc/bash.bashrc:
> 
> export JAVA_HOME=/user/lib/jvm/java-6-sun
> export PATH=$PATH:/user/lib/jvm/java-6-sun/bin
> 
> Do you have any idea what could be the problem??
> BTW. I've searched through google and archives!
> 
> Thanks in advance
> Babak
> 
> 
> 
> _________________________________________________________________
> With Windows Live, you can organize, edit, and share your photos.
> http://www.microsoft.com/middleeast/windows/windowslive/products/photo-
> gallery-edit.aspx

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to