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 codes. However, this is not the only language that uses a JVM. Other languages include the following ones:
Nashorn: This uses JavaScript
Clojure: This is a Lisp dialect
Groovy: This is a scripting language
Scala: This combines the object-oriented and...