玩框架找不到javac [英] Play framework can't find javac

查看:120
本文介绍了玩框架找不到javac的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我对应用程序进行任何更改之前运行Web服务器时,我正在关注播放教程。服务器抛出错误:

I'm following a play tutorial when I run the web server before making any changes to the app. The server throws an error:

IOException: Cannot run program "javac": CreateProcess error=2, The system cannot find the file specified

我检查了我的JAVA_HOME并且它读取了C:\Program Files \ Java \ _ddk1。 7.0_25。如何解决这个问题?

I check my JAVA_HOME and it reads C:\Program Files\Java\jdk1.7.0_25. How would one fix this issue?

推荐答案

确保 javac 位于操作系统的搜索路径中

Make sure that the javac is in the OS's search path

例如,在Windows上,转到控制面板 - > 系统,单击高级系统设置,单击环境变量

For example, on Windows, goto Control Panel -> System, click Advanced System Settings, click on Environment Variables.

系统变量中,找到名为 path 的变量并插入 C:\Program Files\Java\jdk1.7.0_25\bin 的开头。不要忘记在值之间添加; ;)

In the System variables, locate the variable named path and insert C:\Program Files\Java\jdk1.7.0_25\bin at the start of the value. Don't forget to add ; between the values ;)

点击好的好的

关闭所有打开的命令提示符窗口并重新打开它们。这将确保使用新的环境变量更新它们。

Close any command prompt windows you have open and re-open them. This will ensure that they are updated with the new environment variables.

这篇关于玩框架找不到javac的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆