eclipse中maven打jar包时报错

如题,使用eclipse中的maven install命令打jar时,报错:

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


解决方式:

在Eclipse的菜单中:Window > Preferences > Java > Installed JREs

把其指定的JRE路径替换成JDK路径

eclipse中maven打jar包时报错_第1张图片

你可能感兴趣的:(Java)