Add java to C++ roundtrip