O'Reilly logo

Sams Teach Yourself J2EE™ in 21 Days by Peter Roxburgh, Andy Longshaw, Debbie Law, Dan Haywood, Martin Bond

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introducing JNI

The Java Native Interface (JNI) allows you to write code that utilizes code written in programming languages other than Java. If you consider the maxim “Write once, run anywhere,” you may wonder why you might want to use non-Java code. There are a number of scenarios where it is preferable or even wise to use non-Java code:

  • When you require functionality not supported by the standard Java class library. For example, you may need to access parts of the Win32 API.

  • When you want to reuse a library or application written in another programming language, so you don't have to rewrite these libraries or applications. For example, many ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required