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
  • 4,232
  • 8
  • 38
  • 62

1 Answers1

4

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

rgerganov
  • 2,182
  • 21
  • 20