Well, I don't think Java is the best language for that, but as I see the problem there is one option. Call C++ by Java.

Java Tip 17: Integrating Java with C++ - JavaWorld