Native Methods -- Why?
Before writing JNI, consider:
- Could the program be rewritten in/ported to Java?
- It’s possible to write programs quickly in Java
- What happens to portability?
JNI provides a means of providing cross-platform native code, but only if appropriate libraries are generated for each machine. (Code is portable, but not WORA--write once, run anywhere.)