Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Native methods or running c++ code  RSS feed

 
Rebort Zou
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rebort Zou
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot!
I am going to try it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!