This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes how to use native keyword in java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to use native keyword in java?" Watch "how to use native keyword in java?" New topic
Author

how to use native keyword in java?

harsh garg
Ranch Hand

Joined: Jul 13, 2008
Posts: 33
if i want to use the functions of C programming in java what is syntax for this ?any justify answer for this?
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18754
    
  40

This is not exactly a beginner's question... but the answer is... if you want to call C libs from Java, the Sun JNI tutorial can get you started.

http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
 
subject: how to use native keyword in java?