IOException:无法运行程序“javac":CreateProcess error=2,系统找不到指定的文件 [英] IOException: Cannot run program "javac": CreateProcess error=2, The system cannot find the file specified

查看:157
本文介绍了IOException:无法运行程序“javac":CreateProcess error=2,系统找不到指定的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 play 2 中运行我的 scala 项目时收到错误IOException:无法运行程序javac":CreateProcess 错误=2,系统找不到指定的文件.为什么会发生此错误.请解决这个问题.

解决方案

检查您是否已定义环境变量 JAVA_HOME 并将其设置为 JDK 的根目录(不仅仅是 JRE,它不包括 javac)

I got the error "IOException: Cannot run program "javac": CreateProcess error=2, The system cannot find the file specified" while running my scala project in play 2. why does this error occur . Please solve this problem.

解决方案

Check that you have the environment variable JAVA_HOME defined and set to the root directory of your JDK (not just a JRE, which doesn't include javac)

这篇关于IOException:无法运行程序“javac":CreateProcess error=2,系统找不到指定的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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