Subhransu Mishra
Subhransu Mishra

Reputation: 3061

Java program with 2 native methods declared and defined in C and C++

Can anyone give me an example of a Java program which has two native methods declared and defined in C and C++. Actually, I need a procedure as well as the code, so that I can run it and learn from it, thanks.

Upvotes: 0

Views: 118

Answers (1)

Jigar Joshi
Jigar Joshi

Reputation: 240948

You can do it with JNI [Java Native Interface]

Check this tutorial WIN env

Linux Environment :-) better one

Upvotes: 4

Related Questions