This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Java in General and the fly likes Native code? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Native code?" Watch "Native code?" New topic

Native code?

Lara Martin

Joined: Feb 06, 2002
Posts: 23
What is native code? I heard that Java creates a native code in Run time.How do I identify it?
And also, what is the use of JNI?
Karl Laird
Ranch Hand

Joined: Jul 14, 2001
Posts: 67
JNI is the java native interface, it is the libraries and methods that java uses to interface / run with native code.
Native code is code written in other languages (such as C, C++, delphi, etc) - which are usually deemed to be native to one platform.
It can be difficult to get the hang of but is what allows the use of dlls etc on windows, or C libraries on Unix

The Eagle sneers at the Peacock<p>Systems Administrator<br />OrderWare Solutions Ltd<br /><a href="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: Native code?
It's not a secret anymore!