Hi Vikas,

Check out the Invocation APIS of the JNI interface. there are books on this but
i cannot recollect names now. But the following links are useful:

a. http://java.sun.com/j2se/1.3/docs/guide/jni/spec/invocation.doc.html
b. http://java.sun.com/products/jdk/faq/jni-j2sdk-faq.html#move
c. http://java.sun.com/j2se/1.3/docs/guide/jni/spec/invocation.doc.html

and this is the most important one

d.
http://www-stat.stanford.edu/~naras/java/course/lec5/demos/java/JNI-invocation-e
xample/

u got the much needed sample here.

Most JNI Stuff is always Java-c/c++ not many people do it the other way round.
But if u do then the Invocation APIs are the place to start from. You can catch
exceptions ,throw exceptions using these Java exceptions ..the works.

Hope that helps..

--Shankar

-----Original Message-----
From: Vikas Gautam [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 2:58 AM
To: JDJList
Subject: [jdjlist] RE: JNI



 Hi!
        There are plenty of examples which tells about calling a C++
code from java but I could not find any example which
        calls java program from C++.

  vikas...

-----Original Message-----
From: Alan Williamson [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 3:24 PM
To: JDJList
Subject: [jdjlist] RE: JNI


|||     Can anyone help in providing a sample application which calls
||| Java program from C++ code using JNI.

and what was wrong with the samples you seen with JNI @ Sun, or the ones
that are on google?

is there something specific you are looking for?

To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm


--------------------------------------------------------------
Minerva Telelink Private Limited, New Delhi, India
   Sent using "PostMaster" by QuantumLink Communications
 One Internet account, unlimited personal e-mail addresses
Get your free copy of "PostMaster" at http://www.mailserve.net/



--------------------------------------------------------------
Minerva Telelink Private Limited, New Delhi, India
   Sent using "PostMaster" by QuantumLink Communications
 One Internet account, unlimited personal e-mail addresses
Get your free copy of "PostMaster" at http://www.mailserve.net/



To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm


To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm

Reply via email to