1、Download JDK from http://java.sun.com/
3、Download source code Lucene 2.1.0 from its official site: http://lucene.apache.org/
4、Extract files from archieve package to D:\test\lucene-2.1.0(I choose this directory only for demonstration, you can change to anywhere you like,but you must make corresponding changes below).
5、Got Eclipse from http://www.eclipse.org/
And extract it to D:\Eclipse
6、launch your Eclipse. And then click menus or buttons as following:
File=>New=>Project...(Select Java->Java Project, Then click Next)=>Select the option "Create project from existing place" and then press Browse button to select the project directory. I set it to D:\test\lucene-2.1.0, And set the project name "lucene-2.1.0". Click Next=>Finish.
7、Now, You will got the new project named "lucene-2.1.0" in your Package Explorer.
Eclipse IDE will build the Java files automatically and there are may be some errors.Please don't mind about that.Just continue.
8、Select the project "lucene" in your workspace. the click menus or buttons as following:
Run=>External tools=>External tools...
The wizard has already configured the build task for you? Right.
You can see one node named "lucene" in the Ant Build.
Press Run you will launch the build process.
At last, I got the messages as I show in the last article in Eclipse Console.
9、May be you will build failed. Please check JAVA_HOME environment variable. It must point to your Java Development Kit directory. If not,set one.
Or change the JRE of Ant in External tools wizard. I do not encounter this. So I do not show how to solve it in detail. If you have any question. Feel free to contact me or comment this article.