Applications of JNI Technology in Desktop Search Tool
周强,乐小虬,李曦
DOI: https://doi.org/10.3969/j.issn.1673-629x.2013.02.043
2013-01-01
Abstract:DocFetcher is an excellent open source desktop search tool written in the Java language,the tool supports document formats such as PDF,Word and PowerPoint. DocFetcher is trimmed,writing the creation index and retrieval index program. E-pass was developed using Visual C++,in order to integrate DocFetcher with e-pass,need to use C programming language called Java technology (Java N-ative Interface,referred to as JNI) implementations. It first describes the JNI,then describes the part C of JNI program in the desktop search tool,is divided into three parts,creating Java virtual machine,creating index,retrieving index. It lists the main program code with detailed description. Now,the desktop search tool has applied in the e-pass 2. 5 full version,features using correctly,stable operation. U-sing JNI as a bridge of data exchange,will give great flexibility of software. C language can be entirely in case of its own advantages,in-tegrates software developed by Java language,greater scope to achieve software reuse.