This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Native methods or running c++ code

 
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic