[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
分析:[错误]在此环境中不提供编译器。也许你是在JRE上运行,而不是JDK?
解决方案一:
1、 在eclipse中,选择window→preference→java→Installed JREs 点add添加你的jdk路径,选jdk而不是jre,之前的报错原因就出在这里。
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
分析:[错误]在此环境中不提供编译器。也许你是在JRE上运行,而不是JDK?