The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

example code for JNI C++

Posted by Shashank on January 23, 2001 at 10:12 AM

Hi !

I was loking for some example..simplest one how to call C++ method in
a java code.

It will be helpful to give me the same if you have.

Thanks anyway,

take care,
Shashank

> > I am making a project in which I need to call Visual C++ applications in Java applet.I am trying to do it through Java Native Interface(JNI) and using a servlet to call the visual C++ applications at the server-side.But all the examples I see of JNI is of C or C++.Please tell me some site or some example code where I can find example of Visual C++ and JNI.I do'nt understand what code I need to write in the servlet that it calls the visual C++ applications.Please help.
> > Thanks
> > Nageen

>
> As far as I know you can only use JNI to call into C code. You can a write a C wrapper around your VC++ code and call into that.






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us