You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Vaishoo <va...@comcast.net> on 2007/02/03 01:01:58 UTC
ERROR: JAVA_HOME is set to an invalid directory
hi
I am using maven for the 1st time and I am getting the error
as ERROR: JAVA_HOME is set to an invalid directory
but I checked so many times JAVA_HOME is been set correctly.
I am not able guess it .
I need help in learning this.
thanks
vaishoo
Re: ERROR: JAVA_HOME is set to an invalid directory
Posted by Wayne Fay <wa...@gmail.com>.
Try this:
%JAVA_HOME%/bin/javadoc
...1 error
If that works (command exists and runs with no input), then your
JAVA_HOME is set properly. If not, then you've got something wrong,
and you're probably pointing to a JRE rather than a JDK as Greg
suggested.
Wayne
On 2/3/07, Greg Jones <gr...@gkj.com.au> wrote:
> Vaishoo,
>
> The first thing that comes to mind is to check that you are actually using a
> JDK, rather than a JRE and that your JAVA_HOME is pointing to a JDK root
> directory, not the nin directory.
>
> E.g.
>
> JAVA_HOME=C:\Program Files\Java\jdk1.5.0_11
>
> Or
>
> JAVA_HOME=/usr/lib/j2se5.0-sun
>
> The other thing under Windows is to make sure there are no double quotes (")
> in the string as Windows puts in when it expands directory names at the
> prompt.
>
> Hope this helps.
>
> Regards,
>
> Greg J.
>
> -----Original Message-----
> From: Vaishoo [mailto:vaishooonline@comcast.net]
> Sent: Saturday, 3 February 2007 11:02 AM
> To: users@maven.apache.org
> Subject: ERROR: JAVA_HOME is set to an invalid directory
>
> hi
> I am using maven for the 1st time and I am getting the error as ERROR:
> JAVA_HOME is set to an invalid directory but I checked so many times
> JAVA_HOME is been set correctly.
> I am not able guess it .
> I need help in learning this.
>
> thanks
> vaishoo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: ERROR: JAVA_HOME is set to an invalid directory
Posted by Greg Jones <gr...@gkj.com.au>.
Vaishoo,
The first thing that comes to mind is to check that you are actually using a
JDK, rather than a JRE and that your JAVA_HOME is pointing to a JDK root
directory, not the nin directory.
E.g.
JAVA_HOME=C:\Program Files\Java\jdk1.5.0_11
Or
JAVA_HOME=/usr/lib/j2se5.0-sun
The other thing under Windows is to make sure there are no double quotes (")
in the string as Windows puts in when it expands directory names at the
prompt.
Hope this helps.
Regards,
Greg J.
-----Original Message-----
From: Vaishoo [mailto:vaishooonline@comcast.net]
Sent: Saturday, 3 February 2007 11:02 AM
To: users@maven.apache.org
Subject: ERROR: JAVA_HOME is set to an invalid directory
hi
I am using maven for the 1st time and I am getting the error as ERROR:
JAVA_HOME is set to an invalid directory but I checked so many times
JAVA_HOME is been set correctly.
I am not able guess it .
I need help in learning this.
thanks
vaishoo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org