在Eclipse中运行Maven项目,报错:
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
解决方法:
Windows > Preferences > Java > Installed JREs > Add > Standard VM, 选择jdk的安装目录,勾选。
重新build,成功:
参考:No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK_chijuzi6412的博客-CSDN博客