Simple way to call java functions inside a C or C++  program