首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

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

2012-09-13 
m2eclipse报错Unable to locate the Javac Compiler in:maven package时总报错:?Unable to locate the

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"

方法一:?

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

方法二:

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


方法三:

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


参考URL:

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

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


?

热点排行