奇怪的错误 - bat文件无法运行

时间:2020-11-29 16:02:45

I run javac from command line in windows(cmd.exe) - it works fine. But when I'm trying to run the bat file with javac test.java from the same directory, it gives an error "javac is not external or internal command..."

我从Windows命令行运行javac(cmd.exe) - 它工作正常。但是,当我尝试使用javac test.java从同一目录运行bat文件时,它会出现错误“javac不是外部或内部命令......”

1 个解决方案

#1


0  

The problem was in space, no spaces between paths.

问题出在太空,路径之间没有空格。

#1


0  

The problem was in space, no spaces between paths.

问题出在太空,路径之间没有空格。