简体   繁体   中英

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

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.

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

对于使用xml bean时搜索此错误的任何人(我被迫维护一个使用xmlbeans的旧应用程序并得到此错误),使用jdk 5而不是更高的xmlbeans并且此错误消失

If you are using xml-beans command scomp, you can pun the option -compiler like -compiler "C:\jdk1.8.0.231\bin\javac.exe"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM