当前位置: 代码迷 >> Eclipse >> m2eclipse报错"Unable to locate the Javac Compiler in:"
  详细解决方案

m2eclipse报错"Unable to locate the Javac Compiler in:"

热度:632   发布时间:2016-04-23 12:37:33.0
m2eclipse报错"Unable to locate the Javac Compiler in:"

maven package时总报错:?

"Unable to locate the Javac Compiler in:?D:\Program Files\Java\jdk1.6.0_20\..\lib\tools.jar"

方法一:?

  1. Window -> Preferences -> Java -> Installed JREs(如果列表中包含有效JRE忽略此步骤)。点击"Add"按钮,选择默认的"Standard VM", 点击"Next >", 点击"JRE home"右边的"Directory"选择文件夹D:\Program Files\Java\jdk1.6.0_20\jre,一路“确定”。
  2. 回到"Installed JREs"界面,在刚添加的"jdk1.6.0_20"打上勾。?
  3. 打开"Installed JREs"?->?"Execution Environments", 点选界面左侧的"J2SE-1.5",然后在右侧点选"jdk1.6.0_20"
  4. 重启Eclipse

方法二:

Windows->preferences->java->installed jREs ->中加上tools.jar


方法三:

  1. Windows->preferences->java->installed jREs,使用“Serach”查找JRE
  2. 打开 "Installed JREs"?->?"Execution Environments", 点选界面左侧的"J2SE-1.5",然后在右侧点选你Search出来的JRE


参考URL:

http://alvinqq.iteye.com/blog/947506

http://blog.csdn.net/pengchua/article/details/2604911


?

  相关解决方案