这是我驱动器上的地址:
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:
.CMD
) 文件运行 javac.然后,您可以在执行 javac
之前将 SET PATH
放入该文件中.或者,如果您只是编写 javac.exe
SET PATH
PATH
.PATH
进行另一个扩展,这使我们回到 (1) 和 (2)..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
PATH
in the "environment variables" configuration of your system.PATH
first, which brings us back to (1) and (2).这篇关于如何为 javac 设置 PATH 变量,以便手动编译我的 .java 作品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!