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

后端 未结 19 1045
误落风尘
误落风尘 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:27
    1. create folder Maven inside this folder extract download file

    2. this file should C:\Program Files\YourFolderName must in C:\Program Files drive

    3. goto This PC -> right click -> properties -> advanced system -> environment variable

    4. user variable ----> new & ** note create two variable ** if not may be give error i) variable name = MAVEN variable value = C:\Program Files\MAVEN

      ii) variable name = MAVEN_HOME variable value = C:\Program Files\MAVEN\apache-maven-3.6.3\apache-maven-3.6.3

    5. system variable path ---> Edit---> new----give path of this folder i) C:\Program Files\MAVEN
      ii) C:\Program Files\MAVEN\apache-maven-3.6.3\bin

    Hurrraaaaayyyyy

    0 讨论(0)
提交回复
热议问题