首页 | 本学科首页   官方微博 | 高级检索  
     

Java本地方法在Windows注册表访问中的应用
引用本文:朱朝霞,王杨.Java本地方法在Windows注册表访问中的应用[J].微机发展,2006,16(11):225-227.
作者姓名:朱朝霞  王杨
作者单位:长江大学计算机科学学院 湖北荆州434023(朱朝霞),苏州大学计算机科学与技术学院 江苏苏州215006(王杨)
基金项目:安徽省教育厅基金资助项目(JG05003),安徽师范大学校青年基金资助项目(2005xqn05)
摘    要:注册表是Windows系统的核心数据库,一旦操作失败会对系统和应用程序造成不可预见的影响。作为Windows的特定属性,通过Java语言直接访问Windows注册表难以实现。首先介绍了JNI技术和实现方法,然后讨论了JNI在访问Windows注册表中的应用。通过Java本地方法调用Windows API注册表函数访问和修改注册表,有效地解决了Java应用程序访问注册表的难题,最后结合具体应用给出了实现的过程。

关 键 词:注册表  Java  JNI  WindowsAPI  异常处理
文章编号:1673-629X(2006)11-0225-03
修稿时间:2005年12月21

Application about JNI How to Access to Windows Registry Table
ZHU Zhao-xia,WANG Yang.Application about JNI How to Access to Windows Registry Table[J].Microcomputer Development,2006,16(11):225-227.
Authors:ZHU Zhao-xia  WANG Yang
Affiliation:ZHU Zhao-xia~1,WANG Yang~2
Abstract:Registry table is the core database of Windows system,if fail to operate it,an unpredictable influence will be produced as far as system and application programmer.But as Windows' special property,direct access is very difficult to realize.Firstly introduce JNI and how to apply it to Windows' registry table.By means of using JNI and calling Windows API functions,solves the problem about Java applications how to access to registry table.And the major source codes are presented.
Keywords:registry table  Java  JNI  Windows API  exception handling  
本文献已被 CNKI 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号