Java Native Interface | Guide to JNI | What is JNI? | Geekific

preview_player
Показать описание

One of the main strengths of Java is portability, meaning that once we write and compile our code, the result is platform-independent and can run on any device capable of running a Java Virtual Machine. However, sometimes we might need to use code that's natively-compiled for a specific architecture, usually written in C or C++ within our app. In this video, we explain how to acheive this with the help of Java's Native Interface or JNI.

Timestamps:
00:00 Introduction
00:07 What's JNI and Why JNI?
02:14 JNI Simple Example
05:53 Pitfalls of JNI
06:49 Thanks for Watching!

If you found this video helpful, check other Geekific uploads:

#Geekific #JavaNativeInterface #JNI #JavaTutorial
Рекомендации по теме
Комментарии
Автор

Nice video! Well explained, and just the right amount in-depth. I recently started working on a software that uses some JNI, but I haven't had to work on any of that code yet. This was a helpful overview of how the JNI works and how to use it.

ryanwogget
Автор

Another use case for native code with JNI is for implementing performance critical codes

kelvinluk
Автор

Nice video! Could you do that with a hevyest function in c? i´ll love it

javichincity
Автор

the jni is literraly a bridge beetween native code and native code (because java is written in C/C++)

darkfllame
Автор

Do u think java will die and be replacd in the future?

cse