共查询到18条相似文献,搜索用时 62 毫秒
2.
3.
4.
5.
Java本地调用接口(Java native interface, JNI)机制被广泛应用在移动应用开发领域.JNI机制中JNI接口函数被用于在本地代码中解析和转换Java端的数据类型和Java对象.然而,JNI接口函数的调用开销影响了程序运行的效率,其复杂的使用规范也是集成与复用第三方本地组件时的主要障碍.提出一种基于跨语言对象迁移策略的复合本地对象模型,能够实现有效减少本地调用程序中的JNI接口函数调用开销和有效利用已有本地组件的目的.详细讨论了复合本地对象的语言特性及其具体实现,并给出跨语言对象迁移规范以及开发实例.在Dalvik虚拟机中实现了该模型,通过实验证明该策略和模型能够有效改善JNI机制的不足. 相似文献
6.
本文首先简单介绍了Java调用C++语言编写的本地方法的步骤,然后通过简单的例子详细介绍了如何用C++语言编写本地代码的方法,并利用动态连接库实现该功能。 相似文献
7.
8.
本文结合一个MIS系统开发的实例,介绍了OMT系统设计并着重讨论了对象模型的建立及其一般实现方法,最后提出了在JAVA环境下实现OMT设计的一些具体方法。 相似文献
9.
Java是SUN公司推出的全新的面向对象程序设计语言。它将面向对象、平台无关性、稳固性、安全性、多线程等特性集于一身,具有强人的动画、多媒体和交互功能。它使WWW(WorldWideweb)进入一全新的交互领域,它是Internet网络应用开发最革要的语言之一。它能制作诱人的多媒体WCb起始页,使您的Web站点更具有吸引力。l动画制作方法制作动画必须先建立起图形图像序列,然后以特定的显示速度显示序列。动画制作一般须经以下步骤。1.l创建动画线程每一个动画程序都需要一个单独的动画线程,此线程一般在starto方法中创建,其过程如下:P“… 相似文献
10.
连凤春 《数字社区&智能家居》2003,(26):6-9
多态在任何一门面向对象语言中都是一个非常重要的特性。面向对象的很多优点和灵活性都因它而存在,所以对于Java语言,其多态特性尤为重要。 相似文献
11.
Java Native Interface应用研究 总被引:2,自引:0,他引:2
本文研究在Java虚拟机下加快系统的执行速度,实现调用本地操作系统的内核,访问硬件设备接口,执行非Java代码集及一临界代码段等技术。通过这些技术的实现,在保持Java平台无关性的同时又充分发挥了本地平台的优势。 相似文献
12.
13.
A Foreign Function Interface (FFI) allows one host programming language to interoperate with another foreign language. It enables efficient software development by permitting developers to assemble components in different languages. One typical FFI is the Java Native Interface (JNI), through which Java programs can invoke native-code components developed in C, C++, or assembly code. Although FFIs bring convenience to software development, interface code developed in FFIs is often error prone because of the lack of safety and security enforcement. This paper introduces a static-analysis framework, TurboJet, which finds exception-related bugs in JNI applications. It finds bugs of inconsistent exception declarations and bugs of mishandling JNI exceptions. TurboJet is carefully engineered to achieve both high efficiency and accuracy. We have applied TurboJet on a set of benchmark programs and identified many errors. We have also implemented a practical Eclipse plug-in based on TurboJet that can be used by JNI programmers to find errors in their code. 相似文献
14.
该文介绍了一种网络数据采集系统的软硬件的实现。描述了数据采集模块中数据的存放顺序,着重讲述了Java与C的接口函数的写法和数据显示界面的设计。系统采用了Java、Java,Server Pages、JavaScript等技术,利用接口函数编写了可以被jsp调用的动态链接库函数。该文介绍了动态链接库的使用方法。网络数据采集系统使得可以在远离现场的不同的PC机终端上通过internet explore方便直观地观察现场正在采集的数据。该系统具有界面友好、操作简单、实时响应性好等特点,具有较高的实用价值。 相似文献
15.
“Java语言程序设计”课学生能力的培养 总被引:1,自引:1,他引:1
本文针对Java语言程序设计课学生的动手能力和自学能力薄弱的问题,结合近年来的教学经验,从课堂教学、阶段性实验、总结性实验、测评和延伸课堂教学五个方面进行了实践探索。 相似文献
16.
László Böszörményi 《Software - Concepts & Tools》1998,19(3):141-145
The choice of the first-course programming language for a university-level computer science curriculum has pedagogical ramifications in terms of comprehensibility and mastery of fundamental concepts. This paper compares the merits of Java and Modula-3 as a firstcourse language. 相似文献
17.
The JavaTM Native Interface (JNI) provides a set of mechanisms for implementing Java methods in C or C++. JNI is useful for reusing C and C++ code repositories within Java frameworks. JNI is also useful for real‐time systems, where compiled C/C++ code executes performance‐critical tasks, while Java code executes system control and feature tasks. Available JNI literature concentrates on creating Java proxy classes that allow Java clients to interact with C++ classes. Current JNI literature does not discuss Java proxies for entire C++ inheritance hierarchies; that is the topic of this paper. Our experience in reusing C++ class hierarchies within a Java framework has uncovered a set of useful techniques for constructing Java proxy class hierarchies that mirror their C++ counterparts. This report gives both high level design guidelines and specific programming idioms for constructing Java class hierarchies that serve as proxies for C++ counterparts. We begin by discussing opportunities for reuse within a proxy class hierarchy, as well as problems caused by differences between the Java and C++ approaches to inheritance. The two most significant differences are due to C++ support for invocation of a member function based on the static type of its class, and C++ support for multiple implementation inheritance. Two example C++ class hierarchies provide the basis for a set of sections that present the design guidelines and that codify the programming idioms. This work could serve as the basis for an automatic generator of Java proxy class hierarchies. Copyright © 2000 John Wiley & Sons, Ltd. 相似文献
18.
文章首先分析Java编程语言系统概论﹐并且结合Java编程语言系统的特点以及Java编程语言系统现状,进一步总结了Java编程语言系统应用策略。 相似文献