查看: 1241|回复: 1
|
javac is not recognized as an internal or external command
[复制链接]
|
|
本帖最后由 辣椒_小咖喱 于 2-4-2011 03:11 AM 编辑
javac is not recognized as an internal or external command, operable program or batch.
为何我不能compile file 在cmd?
我的os是win 7
java -version 可以
javac -version 就不行
我的file是save在C:\Users\user\Downloads\Compressed\tut1
只可以看到《file》.java 的output ,但不能compile
这是system variable Path 的value
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;C:\Program Files\MySQL\MySQL Server 5.1\bin;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\
但是没有classpath
有哪位知道的可以请教? |
|
|
|
|
|
|
|
发表于 3-4-2011 09:18 PM
|
显示全部楼层
你的 PATH 里缺了 JDK 的 bin.
比如: "C:\Program Files\Java\jdk\bin\" |
|
|
|
|
|
|
| |
本周最热论坛帖子
|