aspose file tools*
The moose likes Servlets and the fly likes Native methods or running c++ code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Native methods or running c++ code" Watch "Native methods or running c++ code" New topic
Author

Native methods or running c++ code

Rebort Zou
Greenhorn

Joined: Feb 26, 2001
Posts: 2
I need to call native c++ method, or run c++ code and pass a set of java objects as paremeters into the c++ method in a servlet. Can any one tell me how to do it?
Thanks a lot!
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
How about Sun Microsystems?
http://java.sun.com/docs/books/tutorial/native1.1/index.html
I suppose JNI works the same from Servlets. That's precisely one of the great things about Servlets. They can contain any type of Java code.


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
Rebort Zou
Greenhorn

Joined: Feb 26, 2001
Posts: 2
Thanks a lot!
I am going to try it.
 
Consider Paul's rocket mass heater.
 
subject: Native methods or running c++ code