You're calling the C++ executable, right? This topic is covered from several angles on StackOverflow. Search, "call executable from java" or similar.

Why is Java involved at all? Or, if all...