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

后端 未结 19 1071
误落风尘
误落风尘 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:11

    Following is the best way to get of the issue , check following on classpath:

    1. Make sure JAVA_HOME system variable must have till jdk e.g C:\Program Files\Java\jdk1.7.0_80 , don't append bin here.

    2. Because MAVEN will look for jre which is under C:\Program Files\Java\jdk1.7.0_80

    3. Set %JAVA_HOME%\bin in classpath .

    Then try Maven version .

    Hope it will help .

提交回复
热议问题