tags:

views:

65

answers:

1

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.

+4  A: 

You can do it with JNI [Java Native Interface]

Check this tutorial WIN env

Linux Environment :-) better one

org.life.java
This points to an empty document...
DrColossos
@DrColossos not really. http://cnd.netbeans.org/docs/jni/beginning-jni-win.html
org.life.java
Now it's working, when I first clicked it, it said that the ressource was not found in the library (or similar)
DrColossos
@DrColossos ok.
org.life.java
@org.life.java The file /web/projects/platform/docs/jni/beginning-jni-win.html appears to be missing. this is comming after clicking it.
yosanu
@yosanu for me its working fine,
org.life.java
@org.life.java pleas Give a link or code if u know any other.
yosanu
@yosanu Here is the chached version of the same page http://tinyurl.com/33m7m53
org.life.java
@ org.life.java thanks its coming . Can you provide me the same for Linux environment .I want to do it in linux
yosanu
@yosanu You are welcomed, and yes you can always upvote it or accept it as answer if this is the case,updated the answer
org.life.java
@org.life.java thanks this is a nice tutarial ,hope to meet you with another java question .
yosanu
@yosanu Sure, you are probably in hurry and forgot to upvote and you forgot to accept it as answer :-)
org.life.java
@ org.life.java Ok you also upvote my question. and make it favourite .
yosanu
@yosanu , I would have done it if this were a case. Thanks
org.life.java
@org.life.java What does "org.life.java" mean.
yosanu
@yosanu Its just a nick name. a psychology behind this name is my life is an organization and java is a module of it :-)
org.life.java
@org.life.java great!!!
yosanu
@org.life.java are u working on Google App engine .Basically it supports python well. also supports java.
yosanu
@org.life.java actually I am currently working on it to develop some facebook apps.
yosanu
@org.life.java come on upvote my question buddy
yosanu