报错环境:
进行maven install时, 提示[error]No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
错误原因:
由错误提示中,很明显说“没有提供可编译环境,有可能项目正运行在jre中而不是jdk中”
解决方法:
window -> preference -> java -> installed jres
可以看到installed jres显示的是jre,而不是jdk
选中当前jre, -> remove -> add -> standard VM -> next -> 选择本地jdk目录 -> finished