Meaningless Drivel is fun!*
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
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.
 
wood burning stoves
 
subject: Native methods or running c++ code
 
Similar Threads
Native fncs,Variable Naming, drawRect
Sierra and Bates - Self Test Chapter 2 Question 5
JQ+ 953840006570
Why not Compilation error here!
minimize frame to system tray