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:

memory problems relating to C++

Posted by badrinarayanan on March 03, 2001 at 1:03 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.

I want to know the memory problems faced while implementing C++ functions in JAVA using JNI.I would also like to know any books / website relating to this


regards,
badri



Replies:

Sponsored Links



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