<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>
      Marakana
      -
      Java - Examples Forum</title>
    <link>
      http://marakana.com/forums/java/examples/</link>
    <description>Java code examples.</description>
    <copyright>1998-2010 Marakana Inc., San Francisco, CA. All Rights Reserved.</copyright><generator>Marakana Spark</generator>
    <item>
        <title>JNI Example</title>
        <link>http://marakana.com/forums/java/examples/47.html</link>
        <author>Marko Gargenta</author>
        <guid isPermaLink="true">http://marakana.com/forums/java/examples/47.html</guid>
        <pubDate>Wed, 25 Nov 2009 10:13:56 -0800</pubDate>
        <category>Java - Examples</category>
        <content:encoded><![CDATA[JNI is an interface that allows Java to interact with code written in another language. Motivation for JNI is code reusability and performance. WIth JNI, you can reuse existing/legacy code with Java (mostly C/C++). In terms of performance,  native code used to be up to 20 times faster than Java, when running in interpreted mode. Modern JIT compilers (HotSpot) make this a moot point.<br/><br/>JNI can also be used to invoke Java code from within natively-written applications - such as those written in C/C++.<br/>In fact, the <code class="inline">java</code> command-line utility is an example of one such application, that launches Java code in a Java Virtual Machine. ...]]></content:encoded>
      </item>
    </channel>
</rss>