Edit: I found the solution: edit the core.jar, delete all package except the codec package and add to the build path, the codec package must be in jar, can't be source code I can't understand, this is very simple code for Lucene, it run with Lucene core lib, but cause error when I use Lucene core source.Edit: I found the solution: edit the core.jar,