JNI技术在桌面搜索工具中的应用  被引量:3

Applications of JNI Technology in Desktop Search Tool

在线阅读下载全文

作  者:周强[1] 乐小虬[1] 李曦[2] 

机构地区:[1]中国科学院国家科学图书馆,北京100190 [2]中国科学技术大学,安徽合肥230026

出  处:《计算机技术与发展》2013年第2期170-172,176,共4页Computer Technology and Development

基  金:安徽省省级教学研究计划项目(20100028)

摘  要:DocFetcher是一个用Java语言编写的优秀开源桌面搜索工具,该工具支持的文档格式有PDF、Word、PowerPoint等。作者对DocFetcher进行了剪裁,编写了创建索引和检索索引程序。e划通是用Visual C++开发的,为了在e划通中集成DocFetcher,就需要采用C语言调用Java的技术(Java Native Interface,简称JNI)来实现。文中首先介绍了JNI,接着对该桌面搜索工具JNI中C部分的程序进行了说明,分为三部分,即创建Java虚拟机、创建索引、检索索引,文中列出了主要的程序代码,并且进行了详细说明。现在,该桌面搜索工具应用在e划通2.5完全版中,功能使用正确,运行稳定。采用JNI作为数据交换的桥梁,会给软件的实现带来极大的灵活性。C语言可以在完全体现自身优势的情况下,整合Java语言开发的软件,更大范围地实现了软件重用。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.

关 键 词:Java虚拟机发 JAVA本地接口 桌面搜索 

分 类 号:TP39[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象