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

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

    when you setup the java home variable try to target path till JDK instead of java. setup path like: C:\Program Files\Java\jdk1.8.0_231

    if you make path like C:\Program Files\Java it will run java but it will not run maven.

提交回复
热议问题