For more detailed information, please refer to: http://www.cnblogs.com/itcsl/p/6804954.html
The following is a reference to the above operation method to illustrate, first download the Lucene-6.2.1.zip file, this online some, and then unzip it in the C packing directory, then the C:\lucene-6.2.1\core in the Lucene-core-6.2.1.jar and C : \lucene-6.2.1\demo in the Lucene-demo-6.2.1.jar copy to the JDK directory, my is in the C:\javacopy\Java\jdk1.8.0_144\lib directory, the following can be configured environment variables, The first is to add the following class_path in the system variable:
.; %java_home%\lib\lucene-demo-6.2.1.jar;%java_home%\lib\lucene-core-6.2.1.jar; C:\lucene-6.2.1\core\lucene-core-6.2.1.jar; C:\lucene-6.2.1\queryparser\lucene-queryparser-6.2.1.jar; C:\lucene-6.2.1\analysis\common\lucene-analyzers-common-6.2.1.jar; C:\lucene-6.2.1\demo\lucene-demo-6.2.1.jar;
In the case of user variables and system variables , the above content is added in Classpath (if no classpath is added manually), note the first "." Do not forget , then you can create a text document "Hello.txt" in the D-packing directory, where "Hello" is written;
Start testing below
Enter the following command in the Red box, as shown below, the installation is successful!
Lucene Configuration Environment variables