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

eclipse中导入源码出现The declared package does not match the expected package的解决方法

2013-09-11 
eclipse中导入源码出现The declared package does not match the expected package的解决办法eclipse用的

eclipse中导入源码出现The declared package does not match the expected package的解决办法
eclipse用的不熟,今天看lucene3.1,用到paoding分词,但是新版本的paoding只有源码,没有jar包,将源码导入工程的步骤如下:
工程右键> Build Path > Configure Build Path > Source > Link Source,
选择source folder,
但是会报The declared package does not match the expected package 的错误,
解决办法:
右键单击在上面的source下,选择相应的source folder,点击右边的Edit,
在Linked folder location对话框中的路径后追加路径到包的上一层。
我的异常网推荐解决方案:configure build path,http://www.myexception.cn/eclipse/4586.html

热点排行