文件名称:Using-C-to-achieve--method
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:741.96kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
用C语言实现Java类的本地方法 1. 0目的与意义在用Java开发应用程序的过程中,如果能100 的使用Java,那当然是最好不过了。但是,有时候我们却不得不在Java的应用程序中使用其它语言编写的代码(即本地代码),例如:(1)原来已有大量经过测试的代码,想要直接在Java应用程序中使用,而把这些代码转换成Java代码可能需要大量的时间和财力。(2)有些功能如访问系统设备等,单纯地使用Java语言可能很难实现或根本就无法实现,这时就需要用其它语言来实现这种底层的功能,以综合各种语言的优点。(3)有些核心算法被成千上万地调用,而运行速度对系统来说又非常重要,这时就可能需要使用其它的运行速度更快的语言来实现这些算法。 但是如果在Java应用程序中使用本地代码将失去Java语言的一个显著的优点,即程序的可移植性。也就是说针对应用程序的不同平台需要对本地代码进行重新编译,甚至做一些改动以使本地代码适应于不同的平台。所以在开发Java应用程序的时候应尽量不使用本地代码,除非万不得已的时候。本文只考虑在Windows环境下用C语言来实现本地方法。-Using C language to achieve Java local methods 1 Purpose and significance in Java application development process, if can use Java 100 , that of course is the best. However, sometimes we have to Java applications to use other language code ( i.e. the local code ), for example: ( 1) that has a large number of tested code, want to directly in the Java application, and put the code into Java code may require a lot of time and money. ( 2) some features such as access to system equipment, simply use the Java language can be very difficult to achieve or simply can not be achieved, then the need to use other language to realize this low-level features, to combine various language advantages. ( 3 ) some core algorithm is tens of thousands of calls, and the running speed of system is also very important, you may need to use other faster operation of the language to implement these algorithms. But if in Java applications using native code will lose the Java language a significant advantages, nam
(系统自动生成,下载前可以参看下载内容)
下载文件列表
jexample/javaTocExample.~htm
jexample/javaTocExample.jpr
jexample/javaTocExample/
jexample/javaTocExample/Factory.~jav
jexample/javaTocExample/worker.dll
jexample/javaTocExample/javaTocExample.dependency
jexample/javaTocExample/main.class
jexample/javaTocExample/Factory.java
jexample/javaTocExample/main.java
jexample/javaTocExample/Worker.~jav
jexample/javaTocExample/main.~jav
jexample/javaTocExample/Worker.java
jexample/javaTocExample/Factory.dll
jexample/javaTocExample/Factory.class
jexample/javaTocExample/Worker.class
jexample/javaTocExample.html
jexample/Factory/
jexample/Factory/factory.c
jexample/Factory/Factory.opt
jexample/Factory/Factory.dsp
jexample/Factory/javaTocExample_Factory.h
jexample/Factory/Factory.dsw
jexample/Factory/Factory.ncb
jexample/Factory/Debug/
jexample/Factory/Debug/vc60.idb
jexample/Factory/Debug/vc60.pdb
jexample/Factory/Debug/Factory.dll
jexample/Factory/Debug/Factory.pdb
jexample/Factory/Debug/Factory.lib
jexample/Factory/Debug/Factory.exp
jexample/Factory/Debug/Factory.ilk
jexample/Factory/Debug/Factory.pch
jexample/Factory/Debug/factory.obj
jexample/Factory/Factory.plg
jexample/worker/
jexample/worker/worker.dsp
jexample/worker/worker.opt
jexample/worker/javaTocExample_Worker.h
jexample/worker/worker.c
jexample/worker/worker.dsw
jexample/worker/worker.ncb
jexample/worker/Debug/
jexample/worker/Debug/vc60.idb
jexample/worker/Debug/vc60.pdb
jexample/worker/Debug/worker.pch
jexample/worker/Debug/worker.obj
jexample/worker/Debug/worker.dll
jexample/worker/Debug/worker.lib
jexample/worker/Debug/worker.exp
jexample/worker/Debug/worker.pdb
jexample/worker/Debug/factory.obj
jexample/worker/Debug/worker.ilk
jexample/worker/worker.plg
jexample/javaTocExample.deployment.properties
jexample/out
jexample/javaTocExample.~ds
jexample/javaTocExample.dsk
jexample/UnnamedPackage.dependency
jexample/
jexample/javaTocExample.jpr
jexample/javaTocExample/
jexample/javaTocExample/Factory.~jav
jexample/javaTocExample/worker.dll
jexample/javaTocExample/javaTocExample.dependency
jexample/javaTocExample/main.class
jexample/javaTocExample/Factory.java
jexample/javaTocExample/main.java
jexample/javaTocExample/Worker.~jav
jexample/javaTocExample/main.~jav
jexample/javaTocExample/Worker.java
jexample/javaTocExample/Factory.dll
jexample/javaTocExample/Factory.class
jexample/javaTocExample/Worker.class
jexample/javaTocExample.html
jexample/Factory/
jexample/Factory/factory.c
jexample/Factory/Factory.opt
jexample/Factory/Factory.dsp
jexample/Factory/javaTocExample_Factory.h
jexample/Factory/Factory.dsw
jexample/Factory/Factory.ncb
jexample/Factory/Debug/
jexample/Factory/Debug/vc60.idb
jexample/Factory/Debug/vc60.pdb
jexample/Factory/Debug/Factory.dll
jexample/Factory/Debug/Factory.pdb
jexample/Factory/Debug/Factory.lib
jexample/Factory/Debug/Factory.exp
jexample/Factory/Debug/Factory.ilk
jexample/Factory/Debug/Factory.pch
jexample/Factory/Debug/factory.obj
jexample/Factory/Factory.plg
jexample/worker/
jexample/worker/worker.dsp
jexample/worker/worker.opt
jexample/worker/javaTocExample_Worker.h
jexample/worker/worker.c
jexample/worker/worker.dsw
jexample/worker/worker.ncb
jexample/worker/Debug/
jexample/worker/Debug/vc60.idb
jexample/worker/Debug/vc60.pdb
jexample/worker/Debug/worker.pch
jexample/worker/Debug/worker.obj
jexample/worker/Debug/worker.dll
jexample/worker/Debug/worker.lib
jexample/worker/Debug/worker.exp
jexample/worker/Debug/worker.pdb
jexample/worker/Debug/factory.obj
jexample/worker/Debug/worker.ilk
jexample/worker/worker.plg
jexample/javaTocExample.deployment.properties
jexample/out
jexample/javaTocExample.~ds
jexample/javaTocExample.dsk
jexample/UnnamedPackage.dependency
jexample/
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.