You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "adevroy (JIRA)" <ji...@codehaus.org> on 2008/08/26 07:53:26 UTC

[jira] Created: (MNG-3728) ERROR: JAVA_HOME is set to an invalid directory.... even when the JAVA_HOME is set correctly

ERROR: JAVA_HOME is set to an invalid directory.... even when the JAVA_HOME is set correctly 
---------------------------------------------------------------------------------------------

                 Key: MNG-3728
                 URL: http://jira.codehaus.org/browse/MNG-3728
             Project: Maven 2
          Issue Type: Bug
          Components: Command Line
    Affects Versions: 2.0.9
         Environment: Windows Vista
            Reporter: adevroy


ERROR: JAVA_HOME is set to an invalid directory.
JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;C:\jai-1_1_2
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation

My JAVA_HOME is set perfectly ( i checked java.exe set on C:\Program Files\Java\jdk1.6.0_03\bin\) JAI and JMF all working ... javac and rest of the commands also work so i guess i good with it.

i tried the following options:
1.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;C:\jai-1_1_2
2.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;
3.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03\
4.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;C:\jai-1_1_2;

I put JAVA_HOME in both user enviroment variables and system one still didn't work.

I copy pasted the path from the browser so i can't be wrong in that.

I have nothing more to try ...  any Idea's ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-3728) ERROR: JAVA_HOME is set to an invalid directory.... even when the JAVA_HOME is set correctly

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145993#action_145993 ] 

Benjamin Bentmann commented on MNG-3728:
----------------------------------------

bq. JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;C:\jai-1_1_2
The JAVA_HOME variable is expected to point to a single directory only, it is not meant to be a list of multiple paths. Out of curiosity, could you point us to the documentation that suggested to set JAVA_HOME that way.

bq. 2.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;
Again, a single directory spec shouldn't end with a separator like ";"

bq. 3.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03\
Although the trailing back slash is not necessary, this should work. I just tried
{noformat}
JAVA_HOME=M:\harmony jdk-629320\
{noformat}
by myself and encountered no problems. Could you provide more diagnostic output from Maven for this case?

> ERROR: JAVA_HOME is set to an invalid directory.... even when the JAVA_HOME is set correctly 
> ---------------------------------------------------------------------------------------------
>
>                 Key: MNG-3728
>                 URL: http://jira.codehaus.org/browse/MNG-3728
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Command Line
>    Affects Versions: 2.0.9
>         Environment: Windows Vista
>            Reporter: adevroy
>
> ERROR: JAVA_HOME is set to an invalid directory.
> JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;C:\jai-1_1_2
> Please set the JAVA_HOME variable in your environment to match the
> location of your Java installation
> My JAVA_HOME is set perfectly ( i checked java.exe set on C:\Program Files\Java\jdk1.6.0_03\bin\) JAI and JMF all working ... javac and rest of the commands also work so i guess i good with it.
> i tried the following options:
> 1.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;C:\jai-1_1_2
> 2.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;
> 3.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03\
> 4.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;C:\jai-1_1_2;
> I put JAVA_HOME in both user enviroment variables and system one still didn't work.
> I copy pasted the path from the browser so i can't be wrong in that.
> I have nothing more to try ...  any Idea's ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-3728) ERROR: JAVA_HOME is set to an invalid directory.... even when the JAVA_HOME is set correctly

Posted by "adevroy (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=146005#action_146005 ] 

adevroy commented on MNG-3728:
------------------------------

 1.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;C:\jai-1_1_2

The JAVA_HOME variable is expected to point to a single directory only, it is not meant to be a list of multiple paths. Out of curiosity, could you point us to the documentation that suggested to set JAVA_HOME that way.

I didn't do it my self when i installed JAI it added the path automatically .. i didn't even knew that it was there till the time maven started showing problem ( i didn't knew it was illegal :) )

    2.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;

Again, a single directory spec shouldn't end with a separator like ";"

i remove it and maven worked !!

3.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03\

Although the trailing back slash is not necessary, this should work. I just tried

Yes it works i retried it ... i guess i had tried with the earlier version of maven this format ... must have failed cos of that !!

and thanks a lot  ...first for again getting me started and second telling me JAVA_HOME can't have multiple paths 


> ERROR: JAVA_HOME is set to an invalid directory.... even when the JAVA_HOME is set correctly 
> ---------------------------------------------------------------------------------------------
>
>                 Key: MNG-3728
>                 URL: http://jira.codehaus.org/browse/MNG-3728
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Command Line
>    Affects Versions: 2.0.9
>         Environment: Windows Vista
>            Reporter: adevroy
>
> ERROR: JAVA_HOME is set to an invalid directory.
> JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;C:\jai-1_1_2
> Please set the JAVA_HOME variable in your environment to match the
> location of your Java installation
> My JAVA_HOME is set perfectly ( i checked java.exe set on C:\Program Files\Java\jdk1.6.0_03\bin\) JAI and JMF all working ... javac and rest of the commands also work so i guess i good with it.
> i tried the following options:
> 1.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;C:\jai-1_1_2
> 2.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;
> 3.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03\
> 4.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;C:\jai-1_1_2;
> I put JAVA_HOME in both user enviroment variables and system one still didn't work.
> I copy pasted the path from the browser so i can't be wrong in that.
> I have nothing more to try ...  any Idea's ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MNG-3728) ERROR: JAVA_HOME is set to an invalid directory.... even when the JAVA_HOME is set correctly

Posted by "adevroy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

adevroy closed MNG-3728.
------------------------

       Resolution: Not A Bug
    Fix Version/s: 2.0.9

> ERROR: JAVA_HOME is set to an invalid directory.... even when the JAVA_HOME is set correctly 
> ---------------------------------------------------------------------------------------------
>
>                 Key: MNG-3728
>                 URL: http://jira.codehaus.org/browse/MNG-3728
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Command Line
>    Affects Versions: 2.0.9
>         Environment: Windows Vista
>            Reporter: adevroy
>             Fix For: 2.0.9
>
>
> ERROR: JAVA_HOME is set to an invalid directory.
> JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;C:\jai-1_1_2
> Please set the JAVA_HOME variable in your environment to match the
> location of your Java installation
> My JAVA_HOME is set perfectly ( i checked java.exe set on C:\Program Files\Java\jdk1.6.0_03\bin\) JAI and JMF all working ... javac and rest of the commands also work so i guess i good with it.
> i tried the following options:
> 1.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;C:\jai-1_1_2
> 2.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;
> 3.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03\
> 4.) JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03;C:\jai-1_1_2;
> I put JAVA_HOME in both user enviroment variables and system one still didn't work.
> I copy pasted the path from the browser so i can't be wrong in that.
> I have nothing more to try ...  any Idea's ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira