Java Native Language (JNI): Lesson
Lesson 1 of 1
  1. 1
    So far we have spent time focusing on Java as a standalone, powerful programming language. One of its greatest strengths is that it’s also able to integrate with other native programming languages …
  2. 2
    Now that we’ve understood JNI’s purpose, let’s look at how to implement JNI into Java code. Firstly, when creating a method that is meant to be used by JNI, you will need to use the keyword native…
  3. 3
    Now that we have taken a look at the code required in Java, let’s shift gears and take a look at how C++ is integrated into JNI. C++ is an enhanced language that continues to hold many of the same …
  4. 4
    In the previous exercise, we learned about how programs can be coded to integrate C++ and Java. Now, let’s take a look at how to run such a cross-platform application! It is first necessary to have…
  5. 5
    So far we have seen how to code our own C++ functions and link them to JNI in a program. However, sometimes you may find it useful to use functions already implemented into third-party APIs. Thir…
  6. 6
    You made it! Let’s review what we have learned so far! - JNI stands for Java Native Interface. It is a powerful tool that bridges together a Java program and native languages allowing f…