Interfacing with other languages

Sometimes, it is necessary to access libraries that are written in a different language. While this is not exclusively a network issue, Java provides support in a number of ways. Direct interface with other languages does not take place across a network, but rather occurs on the same machine. We will briefly examine some of these interface issues.

If we are using another Java library, then we simply need to load the classes. If we need to interface with non-Java languages, then we can use the Java Native Interface (JNI) API or some other library. However, if this language is a JVM-based language, then the process is much easier.

Interfacing with JVM based languages

The Java Virtual Machine (JVM) executes Java byte ...

Get Learning Network Programming with Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.