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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]