Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Information regarding Native Code

 
kashwini Kulkarni
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check Java Native Interface.
 
Ulf Dittmer
Rancher
Posts: 42968
73
 
Vamsi Mohan
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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++.
 
Rob Spoor
Sheriff
Pie
Posts: 20611
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Thanks to everyone for replying to me.


Ashwini Kulkarni
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic