File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes JNI Example Needed!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JNI Example Needed!!" Watch "JNI Example Needed!!" New topic
Author

JNI Example Needed!!

gautam anand
Greenhorn

Joined: Jun 02, 2004
Posts: 22
Hi,

Can someone provide me with a simple JNI example where a native method is being called from a java program and the native method returns a string value which is printed in the java program. I sincerely appreciate your help.

Thanks
Gautam
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
There is a JNI tutorial as Sun's site.

Guy
gautam anand
Greenhorn

Joined: Jun 02, 2004
Posts: 22
Hi,

Thanks for your help Guy. Sun's tutorials were really helpful to understand the concept of JNI.

Thanks
Gautam
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JNI Example Needed!!
 
Similar Threads
question about decompress?
how to invoke HttpRequest from a C code?
Java Uses C?
can anyone explain me what is happening here
executing 'c' program using java