当前位置: 代码迷 >> Eclipse >> eclipse中导入源码出现The declared package does not match the expected package的解决方法
  详细解决方案

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

热度:236   发布时间:2016-04-23 12:59:50.0
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.daimami.com/search?q=4586
  相关解决方案