问题描述
文章我试图在java中运行臭名昭着的hello world脚本,当我在dos提示符下编译使用后续代码javac helloworld.java时我收到错误消息
javac未被识别为内部或外部命令,可操作程序或批处理文件。我已将脚本保存在以下目录中:c:\ java \ ...
提前感谢
不,那不是你的PATH变量应该指向的地方。那不是位置
存储''javac.exe''命令的位置(注意尾随''c'')。
移动到你的jdk目录,在那里你会找到''java''和''javac''在其bin
目录中。 jdk目录存放在这个jre目录旁边。
亲切的问候,
Jos
scribes
I am trying to run the infamous hello world script in java and when i compile in dos prompt using the folling code "javac helloworld.java" i get the error message
javac is not recognised as an internal or external command, operable program or batch file. I have saved the script in this directory: c:\java\ ...
thanks in advance
Nope, that''s not where your PATH variable should point to.That is not the location
where your ''javac.exe'' command is stored (note the trailing ''c'').
Move to your jdk directory where you will find both ''java'' and ''javac'' in its bin
directory. The jdk directory is stored next to this jre directory.
kind regards,
Jos
这篇关于臭名昭着的你好世界的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!