标签: java environment-variables javac
我在环境变量中添加了路径变量'C:\Program Files\Java\jdk1.6.0_21\bin',但是当我尝试运行'javac' is not recognized as an internal or external command, operable program or batch file时,它仍然给出了这个错误:javac mycode.java。我疯了,请帮忙。感谢。
'C:\Program Files\Java\jdk1.6.0_21\bin'
'javac' is not recognized as an internal or external command, operable program or batch file
javac mycode.java
答案 0 :(得分:6)
关闭命令提示符窗口并再次打开它以使新环境变量生效。