No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
遇到问题:
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
错误截图:
从上图中可以看出, java编译环境没有jre1.8.0_171, 也就是说并没有配置成jdk目录, 然后看Eclipse–>Window–>preferences–>Java–>Installed JRE
解决办法:
1.新建
2.找到jdk安装目录,点击保存
选中要使用的JRE,点击保存。
在项目上,单击右键‘’Java Build Path‘’
问题解决:
还没有评论,来说两句吧...