在maven中出现Unable to locate the Javac Compiler in: [ERROR] C:\Program Files (x86)\Java\jre_1.8错误

Unable to locate the Javac Compiler in: [ERROR] C:\Program Files (x86)\Java\jre_1.8…

##今天在项目中遇到了这样的问题,和大家分享一下:

看了很多资料以及网上的解决办法最后发现是jre的问题,可以在eclipse中的windows------>preferences---->java------>Instralled JREs 中将jre改成自己安装的jre,不知道为什么自己的c盘多了一个jre,然后eclipse中自己默认使用的是C盘的jre。

如图:我将自己的jre安装在了D盘
 在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_44225613/article/details/88358388