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

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

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

        如何为 javac 设置 PATH 变量,以便手动编译我的 .java 作品?

        How can I set the PATH variable for javac so I can manually compile my .java works?(如何为 javac 设置 PATH 变量,以便手动编译我的 .java 作品?)
            <tfoot id='GcXbX'></tfoot>

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

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

                • 本文介绍了如何为 javac 设置 PATH 变量,以便手动编译我的 .java 作品?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  这是我驱动器上的地址:

                  Here's the address on my drive:

                  C:Program FilesJavajdk1.6.0_18in

                  C:Program FilesJavajdk1.6.0_18in

                  我将如何设置路径变量,以便我可以进入命令窗口 (windowskey+r "cmd") 并能够输入如下内容:

                  How would I go about setting the path variable so I can go in command window (windowskey+r "cmd") and be able to type things like:

                  javac TestApp.java
                  

                  我使用的是 Windows 7 专业版.

                  I'm using Windows 7 Professional.

                  推荐答案

                  每次启动时在命令 shell 中键入 SET PATH 命令可能会让你很快变老.三种选择:

                  Typing the SET PATH command into the command shell every time you fire it up could get old for you pretty fast. Three alternatives:

                  1. 从批处理 (.CMD) 文件运行 javac.然后,您可以在执行 javac 之前将 SET PATH 放入该文件中.或者,如果您只是编写 javac.exe
                  2. 的显式路径,则可以不使用 SET PATH
                  3. 在系统的环境变量"配置中设置增强的、改进的 PATH.
                  4. 从长远来看,您会希望使用 Ant 自动编译 Java.但这需要首先对 PATH 进行另一个扩展,这使我们回到 (1) 和 (2).
                  1. Run javac from a batch (.CMD) file. Then you can just put the SET PATH into that file before your javac execution. Or you could do without the SET PATH if you simply code the explicit path to javac.exe
                  2. Set your enhanced, improved PATH in the "environment variables" configuration of your system.
                  3. In the long run you'll want to automate your Java compiling with Ant. But that will require yet another extension to PATH first, which brings us back to (1) and (2).

                  这篇关于如何为 javac 设置 PATH 变量,以便手动编译我的 .java 作品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Compiling C++ for the JVM(为 JVM 编译 C++)
                  Compile to java bytecode (without using Java)(编译成java字节码(不使用Java))
                  How to drive C#, C++ or Java compiler to compute 1+2+3+...+1000 at compile time?(如何在编译时驱动 C#、C++ 或 Java 编译器计算 1+2+3+...+1000?)
                  Java ClassLoader: load same class twice(Java ClassLoader:两次加载相同的类)
                  How to debug .class files in ECLIPSE?(如何在 ECLIPSE 中调试 .class 文件?)
                  Java quot;The blank final field may not have been initializedquot; Anonymous Interface vs Lambda Expression(Java“可能尚未初始化空白的最终字段匿名接口与 Lambda 表达式)
                        <bdo id='nWCzW'></bdo><ul id='nWCzW'></ul>

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

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