No compiler is provided in this environment. Perhaps you are running on a JRE rather than a jdk?

关于maven项目中出现:No compiler is provided in this environment. Perhaps you are running on a JRE rather than a jdk?

在eclipse中依次选择window->preferences->java->installed jres,图中箭头所指的location一定要是jdk路径而不是jre路径。我原来就是jre路径,才导致项目在install时报错,改成jdk路径就正确了。

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a jdk?_第1张图片

你可能感兴趣的:(maven项目)