File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Information regarding Native Code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Information regarding Native Code" Watch "Information regarding Native Code" New topic
Author

Information regarding Native Code

kashwini Kulkarni
Ranch Hand

Joined: Aug 07, 2009
Posts: 63
Hello ,

I am a beginner in Java.I came across the " Native" keyword.
I have question regarding Native code.
How can I call a function written in from Java?




Thanks in Advance
Ashwini Kulkarni
Miklos Szeles
Ranch Hand

Joined: Oct 21, 2008
Posts: 142
Check Java Native Interface.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42608
    
  65
Start here: http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html


Ping & DNS - my free Android networking tools app
Vamsi Mohan
Ranch Hand

Joined: Jun 20, 2009
Posts: 80
Native code is a code which is written and included other than Java language. The Java Native Interface (JNI) enables the integration of code written in the Java programming language with code written in other languages such as C and C++.


VAMSI MOHAN.V
(SCJP5.0, IBM Rational Solution Designer, IBM Rational Architect, IBM RUP Designer)
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19760
    
  20

kashwini Kulkarni wrote:I am a beginner in Java.

Native methods and JNI is a more advanced topic. Are you sure you want to go there already? If I were you I'd get some more experience, then try again.
kashwini Kulkarni
Ranch Hand

Joined: Aug 07, 2009
Posts: 63
Hello,

Thanks to everyone for replying to me.


Ashwini Kulkarni
 
Don't get me started about those stupid light bulbs.
 
subject: Information regarding Native Code