Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to call java from c++  RSS feed

 
Meir Yan
Ranch Hand
Posts: 599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all
before you ask i do search Google with the term "calling java from c++"
but i didn't get any solid example on how to do this any where .
is it possible to do it with JNI ?
or other way ?
Thanks
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you use JNI. Part of JNI is called the "Invocation API", which lets you embed a Java Virtual Machine in your program; then you communicate with it using other parts of JNI. Here's a link.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!