Lucene Configuration Environment variables

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.