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

查看:30
本文介绍了Play框架找不到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_25invalue 的开头.不要忘记在值之间添加 ; ;)

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屋!

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