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

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

    A very common mistake people make is that, when they set JAVA_HOME or JRE_HOME, they set the value to C:\Program Files\Java\jdk1.8.0_221\bin or similar.

    Please note JAVA_HOME and JRE_HOME value should not contain \bin

提交回复
热议问题