Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Configuration based on open source Lucene Java development environment     - Flask deploy applications using Nginx on Ubuntu (Server)

- Linux-du and df command (Linux)

- Deployment Kubernetes manage Docker example cluster on Ubuntu (Server)

- Ubuntu 14.04 Fixed update information is outdated error (Linux)

- Compression software on a simple comparison of zip and gz (Linux)

- Awk include binding capacity larger than the specified size of all files directory (Linux)

- CentOS iptables firewall enabled (Linux)

- CentOS7 virtual machine settings, and bridging problems (Linux)

- Write perfect printf (Programming)

- MySQL and Oracle time zone settings compare (Database)

- Security: set limits on password (Linux)

- JQuery implements the same content merge cells (Programming)

- How to install the client sqlplus under linux (Database)

- Linux modify the system time (Linux)

- Ubuntu 14.04 installed Nvidia CUDA 7.5 and build Python Theano deep learning development environment (Linux)

- Talk about Java in the collection (Programming)

- Lua4.0 interpreter entrance (Programming)

- Linux System Getting Started Learning: Join cron job in Linux (Linux)

- ActiveMQ-based shared file system HA solutions (Server)

- Struts2 configure a static resource files without Struts processing (regular match) (Programming)

 
         
  Configuration based on open source Lucene Java development environment
     
  Add Date : 2018-11-21      
         
         
         
  Some time ago to do research on text classification, downloads LUCENE open source code, made some preliminary research. To take advantage of open source to do some of the procedures, environment configuration points a little more, but do not bother, now sum up, there are the following points.

Based jdk1.6 environment in eclipse integrated development environment, complete the configuration of your environment.

1. jdk environment:

Download and install JDK1.6, environment variables configured as follows:

User variables add variables and property values are as follows:

Classpath ------ c: \ Program Files \ Java \ jdk1.6.0_02 \ lib \ tools.jar; c: \ Program Files \ Java \ jdk1.6.0_02 \ lib \ dt.jar;

java_home ------ c: \ Program Files \ Java \ jdk1.6.0_02

Path ------ c: \ Program Files \ Java \ jdk1.6.0_02 \ bin; c: \ Program Files \ Java \ jdk1.6.0_02;

System variables add variables and property values are as follows:

PATH ----- c: \ Program Files \ Java \ jdk1.6.0_02 \ bin; c: \ Program Files \ Java \ jdk1.6.0_02;

CLASSPATH -------- .; c: \ Program Files \ Java \ jdk1.6.0_02 \ lib \ tools.jar; c: \ Program Files \ Java \ jdk1.6.0_02 \ lib \ dt.jar;

JAVA_HOME ------- c: \ Program Files \ Java \ jdk1.6.0_02

TOMCAT_HOME -------- c: \ Program Files \ Apache Software Foundation \ Tomcat 5.0

CATALINA_HOME ------ c: \ Program Files \ Apache Software Foundation \ Tomcat 5.0

2. TOMCAT5.0 environment configuration

According to the above configuration of the JDK, at this time, just next to jdk installation directory and copy the lib subdirectory tools.jar dt.jar to the next Tomat's common \ li directory, after installation, start the "Apache Tomcat" service, and then enter "http://127.0.0.1:8080" test. If we can see the Tomcat welcome interface, the installation was successful.

3. lucene Deployment Configuration

Lucene is a pure java program, which requires a Java environment to run. Based lucene-2.3.0 version is as follows:

Environment variables system environment variable column, behind the original text CLASSPATH plus:

"D: \ workshop \ lucene2.3.0 \ lucene-2.3.0 \ lucene-core-2.3.0.jar; D: \ workshop \ lucene2.3.0 \ lucene-2.3.0 \ lucene-demos-2.3.0.jar "

In fact, this is the addition of the relevant java package location lucene. This path is the path lucene jar package exists

Here, at the command prompt, type "echo% CLASSPATH%" environment variable can be viewed correctly added. After the environment variables configured to start deployment lucene in development tools.

Copy the jsp directory lucene the src directory to Tamcat the webapps \ ROOT directory, renamed Luceneweb. Copy lucene-demos-2.3.0.jar and lucene-core-2.3.0.jar file to Luceneweb \ WEB-INF \ lib directory. (You can also simply copy luceneweb.war to tomcat webapps directory).

In luceneweb create folders docs, and placed in a text file or HTML file in the docs folder.

At this point, all of the environment have been equipped with complete, we can now use open source java lucene were developed.
     
         
         
         
  More:      
 
- Ubuntu install perfectly handsome terminal Guake 0.8.1 (Linux)
- Ubuntu Tutorial - Manually install Oracle Java JDK 8 (Linux)
- PostgreSQL transaction model introduction (Database)
- Python cause yum upgrade error (Linux)
- Android memory optimization of the memory cache (Linux)
- Install Gnome Flashback Classic Desktop on Ubuntu 14.10 / Mint 7 (Linux)
- Installation Elementary OS Freya to do some settings (Linux)
- Monitor log file (listener.log) (Database)
- How to make GRub instead of the default Ubuntu software center (Linux)
- Linux Open coredump (Linux)
- HTML5 postMessage cross-domain data exchange (Programming)
- SME Linux network security policy server security (Linux)
- Ubuntu 15.04 installation MATE 1.10 (Linux)
- CentOS terminal display Chinese (Linux)
- Repair Maven project developed default Maven Plugin folder (Linux)
- Linux SVN installation and configuration graphic tutorials (Server)
- learning Linux ls command examples (Linux)
- Windows 7 hard disk installation notes Debian (Linux)
- Php and MySQL command add to the environment variable method in Linux system (Linux)
- Talk about the Linux folder permissions issue again (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.