How do I fix maven error The JAVA_HOME environment variable is not defined correctly?

后端 未结 19 1330
误落风尘
误落风尘 2021-02-01 01:33

Issue:

I am getting the Maven error \"The JAVA_HOME environment variable is not defined correctly\" when I run through Inno setup batch execution. Howe

19条回答
  •  误落风尘
    2021-02-01 02:14

    Following steps solved the issue for me..

    • Copied the zip file into the Program Files folder and extracted to "apache-maven-3.6.3-bin".

    • Then copied the path, C:\Program Files\apache-maven-3.6.3-bin\apache-maven-3.6.3

    • Then created the new MAVEN_HOME variable within environmental variables with the above path.

    Also added,

    C:\Program Files\apache-maven-3.6.3-bin\apache-maven-3.6.3\bin
    

    address to the "PATH" variable

提交回复
热议问题