Evaluating the Java Native Interface (JNI)

Author(s):  
Stelios Sotiriadis ◽  
Oladotun Omosebi ◽  
Assem Ayapbergenova ◽  
Nurbek P. Saparkhojayev

This article aims to explore JNI features and to discover fundamental operations of the Java programming language, such as arrays, objects, classes, threads and exception handling, and to illustrate these by using various algorithms and code samples. The authors also investigate the JNI Invocation API that allows native applications to interact with the Java Virtual Machine (JVM). They focus on attaching native threads to a running JVM and on leveraging existing native code using one-to-one mapping and shared stubs.

2014 ◽  
Vol 11 (1) ◽  
pp. 47-68 ◽  
Author(s):  
Patricia Conde ◽  
Francisco Ortin

Java 7 has included the new invokedynamic opcode in the Java virtual machine. This new instruction allows the user to define method linkage at runtime. Once the link is established, the virtual machine performs its common optimizations, providing better runtime performance than reflection. However, this feature has not been offered at the abstraction level of the Java programming language. Since the functionality of the new opcode is not provided as a library, the existing languages in the Java platform can only use it at the assembly level. For this reason, we have developed the JINDY library that offers invokedynamic to any programming language in the Java platform. JINDY supports three modes of use, establishing a trade-off between runtime performance and flexibility. A runtime performance and memory consumption evaluation is presented. We analyze the efficiency of JINDY compared to reflection, the MethodHandle class in Java 7 and the Dynalink library. The memory and performance costs compared to the invokedynamic opcode are also measured.


Author(s):  
Stelios Sotiriadis ◽  
Oladotun Omosebi ◽  
Assem Ayapbergenova ◽  
Nurbek P. Saparkhojayev

This article describes how the java native interface (JNI) is a powerful feature of the java platform that started to draw attention in the latter years as an efficient programming framework for building and delivering innovative technological applications based on disruptive technologies such as mobile, Internet of Things and embedded systems. Developers use it to incorporate native code written in programming languages such as C, C++, python etc., into java. JNI is particularly useful when java applications need to access existing native libraries or code blocks written in other languages to increase performance, avoid recoding and expand interoperability between programming languages for processes that reside in the same process. This article aims to explore JNI features and to discover fundamental operations of the Java programming language, such as arrays, objects, classes, threads and exception handling, and to illustrate these by using various algorithms and code samples.


2018 ◽  
Vol 24 (2) ◽  
pp. 256-261
Author(s):  
I Made Agus Wirawan ◽  
I Made Gede Sunarya ◽  
I Gusti Nyoman Tri Jayendra ◽  
Aan Yudianto

The learning media must be able to guide the students in every stage of learning to improve the students' activity in learning. Based on this problem, this study aims to: (1) design and implement the application of Mobile-Based Learning Based Learning for Computer Assembly Learning in Class X TKJ SMK N 2 Seririt. (2) determine the students’ motivation to Mobile Learning Based Guided Inquiry Application for Computer Assembly Lesson in Class X TKJ SMK N 2 Seririt. The method used in this study was the Waterfall model. Subjects in this study were the students of class X TKJ SMK N 2 Seririt. The results of this study are applications that use the Java programming language with the editor of Android Studio. All the features contained in this educational media work well. Students’ motivation using Mobile Based Guided Inquiry for Computer Assembly Lesson in Class X TKJ SMK N 2 Seririt is in a very good category


KOMTEKINFO ◽  
2021 ◽  
Vol 8 (1) ◽  
pp. 84-91
Author(s):  
Hari Marfalino ◽  
Larissa Rani ◽  
Mardison ◽  
Ichsan Pribadi

The development of technology and information is felt very rapidly and this affects aspects of work that make work easier, one of which is the development of mobile technology, information media can now be made in the form of mobile applications, using mobile technology in the form of tourist applications, which provide information - information about tourism in the district of Solok Selatan, the search for tourism information in the district of Solok Selatan will be more practical to use and users can use this application wherever they are, this application can be used as a medium of knowledge about tourism in Solok Selatan district. This Solok Selatan tourist application is expected to be able to provide more knowledge about Solok Selatan tourism to the wider community, especially the people of Solok Selatan District.


Author(s):  
Doru Anastasiu Popescu ◽  
Dragos Nicolae

In this chapter, the authors present a way of measuring the similarity between two Web applications. For this, they define the degree of similarity between two Web applications, taking into account only the Webpages composed of HTML tags. The authors also introduce an algorithm used to calculate this value, its implementation being made in the Java programming language.


Author(s):  
Mait Harf ◽  
Kristiina Kindel ◽  
Vahur Kotkas ◽  
Peep Küngas ◽  
Enn Tyugu

Sign in / Sign up

Export Citation Format

Share Document