Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于我的课程,我们正在处理 javacc。我的教授给我们发了一个 javacc zip 文件并按照设置指南进行操作,我做了什么:
当我尝试使用 javacc 测试我的代码时出现错误:
'javac' is not recognized as an internal or external command, operable program or batch file.
右键单击计算机
点击属性
在左侧窗格中选择Advanced System Settings
选择环境变量
在 System Variables 下,选择PATH并单击edit,然后单击 new 并将路径添加为 C:\Program Files\Java\jdk1.8.0_131\bin (取决于您的安装路径),最后单击 ok
接下来重新启动命令提示符并打开它并尝试 javac