Play框架找不到javac [英] Play framework can't find javac
问题描述
在对应用程序进行任何更改之前运行网络服务器时,我正在学习游戏教程.服务器抛出错误:
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 FilesJavajdk1.7.0_25.如何解决这个问题?
I check my JAVA_HOME and it reads C:Program FilesJavajdk1.7.0_25. How would one fix this issue?
推荐答案
确保 javac
在操作系统的搜索路径中
Make sure that the javac
is in the OS's search path
例如,在 Windows 上,转到 Control Panel
-> System
,点击 Advanced System Settings
,点击 Environment Variables代码>.
For example, on Windows, goto Control Panel
-> System
, click Advanced System Settings
, click on Environment Variables
.
在System variables
中,找到名为path
的变量并插入C:Program FilesJavajdk1.7.0_25in
在 value
的开头.不要忘记在值之间添加 ;
;)
In the System variables
, locate the variable named path
and insert C:Program FilesJavajdk1.7.0_25in
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.
这篇关于Play框架找不到javac的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!