• <i id='Sr2jD'><tr id='Sr2jD'><dt id='Sr2jD'><q id='Sr2jD'><span id='Sr2jD'><b id='Sr2jD'><form id='Sr2jD'><ins id='Sr2jD'></ins><ul id='Sr2jD'></ul><sub id='Sr2jD'></sub></form><legend id='Sr2jD'></legend><bdo id='Sr2jD'><pre id='Sr2jD'><center id='Sr2jD'></center></pre></bdo></b><th id='Sr2jD'></th></span></q></dt></tr></i><div id='Sr2jD'><tfoot id='Sr2jD'></tfoot><dl id='Sr2jD'><fieldset id='Sr2jD'></fieldset></dl></div>

      <legend id='Sr2jD'><style id='Sr2jD'><dir id='Sr2jD'><q id='Sr2jD'></q></dir></style></legend>
        <tfoot id='Sr2jD'></tfoot>
      1. <small id='Sr2jD'></small><noframes id='Sr2jD'>

        • <bdo id='Sr2jD'></bdo><ul id='Sr2jD'></ul>

      2. Maven JAVA_HOME 环境变量未正确定义,但它是

        Maven JAVA_HOME environment variable is not defined correctly, but it is(Maven JAVA_HOME 环境变量未正确定义,但它是)
        <legend id='Z9WZ7'><style id='Z9WZ7'><dir id='Z9WZ7'><q id='Z9WZ7'></q></dir></style></legend>
        <tfoot id='Z9WZ7'></tfoot>

        <small id='Z9WZ7'></small><noframes id='Z9WZ7'>

          1. <i id='Z9WZ7'><tr id='Z9WZ7'><dt id='Z9WZ7'><q id='Z9WZ7'><span id='Z9WZ7'><b id='Z9WZ7'><form id='Z9WZ7'><ins id='Z9WZ7'></ins><ul id='Z9WZ7'></ul><sub id='Z9WZ7'></sub></form><legend id='Z9WZ7'></legend><bdo id='Z9WZ7'><pre id='Z9WZ7'><center id='Z9WZ7'></center></pre></bdo></b><th id='Z9WZ7'></th></span></q></dt></tr></i><div id='Z9WZ7'><tfoot id='Z9WZ7'></tfoot><dl id='Z9WZ7'><fieldset id='Z9WZ7'></fieldset></dl></div>
                <tbody id='Z9WZ7'></tbody>
                • <bdo id='Z9WZ7'></bdo><ul id='Z9WZ7'></ul>
                  本文介绍了Maven JAVA_HOME 环境变量未正确定义,但它是的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在 Windows 上设置 Maven,我认为一切设置正确,但我在运行时仍然收到错误JAVA_HOME 环境变量未正确定义"

                  I'm setting up Maven on Windows and I think everything is set up correctly, but I'm still getting the error "The JAVA_HOME environment variable is not defined correctly" when I run

                  mvn --version
                  

                  在我的环境变量中,我有以下内容:

                  In my environment variables, I have the following:

                  用户变量

                  • M2_HOME 是 C:apache-maven-3.6.3
                  • MAVEN_HOME 是 C:apache-maven-3.6.3
                  • JAVA_HOME 是 C:Program FilesJavajdk-11.0.2in

                  系统变量

                  • JAVA_HOME 是 C:Program FilesJavajdk-11.0.2in

                  在系统变量中,在我的路径变量中,我有:

                  Inside System Variables, in my Path variable, I have:

                  • C:Program Files (x86)Common FilesOracleJavajavapath

                  • C:Program Files (x86)Common FilesOracleJavajavapath

                  C:ProgramDataOracleJavajavapath

                  C:ProgramDataOracleJavajavapath

                  C:Program FilesJavajdk-11.0.2in

                  C:Program FilesJavajdk-11.0.2in

                  C:apache-maven-3.6.3in

                  C:apache-maven-3.6.3in

                  似乎无法弄清楚这些环境变量出了什么问题,以至于 Maven 会给我这个错误.任何帮助将不胜感激!

                  Can't seem to figure out what's wrong with these environment variables such that Maven would be giving me that error. Any help would be greatly appreciated!

                  推荐答案

                  你的 JAVA_HOME 不正确.JAVA_HOME 应该是C:Program FilesJavajdk-11.0.2"

                  Your JAVA_HOME is incorrect. JAVA_HOME should be "C:Program FilesJavajdk-11.0.2"

                  请记住在重置 JAVA_HOME 环境后重新打开新控制台以应用新值.

                  Remember to reopen new console after reset JAVA_HOME environment to apply new value.

                  这篇关于Maven JAVA_HOME 环境变量未正确定义,但它是的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Java System Environment Variable(Java 系统环境变量)
                  Java -classpath option(Java -classpath 选项)
                  Read environment variable in SpringBoot(在 SpringBoot 中读取环境变量)
                  Tomcat 8 - context.xml use Environment Variable in Datasource(Tomcat 8 - context.xml 在数据源中使用环境变量)
                  Issue with JAVA_HOME(JAVA_HOME 的问题)
                  Access shell environment variables in Java(在 Java 中访问 shell 环境变量)

                    <tfoot id='InHUV'></tfoot>
                    • <small id='InHUV'></small><noframes id='InHUV'>

                      <legend id='InHUV'><style id='InHUV'><dir id='InHUV'><q id='InHUV'></q></dir></style></legend>
                      <i id='InHUV'><tr id='InHUV'><dt id='InHUV'><q id='InHUV'><span id='InHUV'><b id='InHUV'><form id='InHUV'><ins id='InHUV'></ins><ul id='InHUV'></ul><sub id='InHUV'></sub></form><legend id='InHUV'></legend><bdo id='InHUV'><pre id='InHUV'><center id='InHUV'></center></pre></bdo></b><th id='InHUV'></th></span></q></dt></tr></i><div id='InHUV'><tfoot id='InHUV'></tfoot><dl id='InHUV'><fieldset id='InHUV'></fieldset></dl></div>

                      • <bdo id='InHUV'></bdo><ul id='InHUV'></ul>
                            <tbody id='InHUV'></tbody>