1

Possible Duplicate:
how to call java function from c++?
Can C++ call Java code?

I have a native application on Linux (i.e. main() is in C++) and I want to reuse some of my Java code. Can I load JVM libraries and somehow call Java classes?

Thank you!

Community
  • 1
  • 1
Pavel Bernshtam
  • 3,963
  • 7
  • 36
  • 57

1 Answers1

4

You can load the JVM in your native application and invoke stuff using the Invocation API

rgerganov
  • 2,142
  • 21
  • 20