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

        • <bdo id='Vwkio'></bdo><ul id='Vwkio'></ul>
      1. <small id='Vwkio'></small><noframes id='Vwkio'>

        <tfoot id='Vwkio'></tfoot>
      2. JAVA_HOME 不指向 JDK

        时间:2023-07-13
      3. <legend id='zYwTY'><style id='zYwTY'><dir id='zYwTY'><q id='zYwTY'></q></dir></style></legend>

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

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

                  <bdo id='zYwTY'></bdo><ul id='zYwTY'></ul>
                    <tbody id='zYwTY'></tbody>

                  <tfoot id='zYwTY'></tfoot>

                • 本文介绍了JAVA_HOME 不指向 JDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试学习有关如何使用 ant 构建和运行您的应用程序的教程.我已经按照所有步骤创建了构建文件,但是当我尝试运行 ant 时,它给了我这个错误.

                  I am trying to follow a tutorial about how to use ant to build and run your application. I've followed all the steps and have created the build file, but when I try to run ant it gives me this error.

                  构建失败/home/bilal/tmp/ant/build.xml:19:找不到javac编译器;com.sun.tools.javac.Main 不在类路径中.也许 JAVA_HOME 不指向 JDK.当前设置为/usr/lib/jvm/java-6-openjdk/jre"

                  BUILD FAILED /home/bilal/tmp/ant/build.xml:19: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "/usr/lib/jvm/java-6-openjdk/jre"

                  任何想法如何解决这个问题?

                  Any ideas how to resolve this issue ?

                  推荐答案

                  使 JAVA_HOME 变量指向 jdk 安装,而不是 jre.

                  Make JAVA_HOME variable point to a jdk installation, not jre.

                  您引用的是运行时环境,而不是开发工具包——它找不到编译器,因为它不存在.

                  You are referencing the runtime environment, not the development kit - it can't find the compiler because its not there.

                  从您发布的行中,您可以在末尾删除 jre:

                  From the line you posted, which states you have open-jdk you can just remove the jre at end:

                  export JAVA_HOME='/usr/lib/jvm/java-6-openjdk/'
                  

                  这篇关于JAVA_HOME 不指向 JDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:.properties 文件中的 PropertyPlaceholderConfigurer 和环境变量 下一篇:适用于 Linux 的 Windows 子系统无法识别 JAVA_HOME 环境变量

                  相关文章

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

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

                    1. <legend id='f2hgI'><style id='f2hgI'><dir id='f2hgI'><q id='f2hgI'></q></dir></style></legend>

                        <bdo id='f2hgI'></bdo><ul id='f2hgI'></ul>