You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ahmed Aniss (Jira)" <ji...@apache.org> on 2020/10/13 10:40:00 UTC

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

    [ https://issues.apache.org/jira/browse/MNG-3728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17213038#comment-17213038 ] 

Ahmed Aniss commented on MNG-3728:
----------------------------------

problem fixed here : https://youtu.be/sLRdBi_Zu8Q

> ERROR: JAVA_HOME is set to an invalid directory.... even when the JAVA_HOME is set correctly 
> ---------------------------------------------------------------------------------------------
>
>                 Key: MNG-3728
>                 URL: https://issues.apache.org/jira/browse/MNG-3728
>             Project: Maven
>          Issue Type: Bug
>          Components: Command Line
>    Affects Versions: 2.0.9
>         Environment: Windows Vista
>            Reporter: adevroy
>            Priority: Major
>
> 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 was sent by Atlassian Jira
(v8.3.4#803005)