Without doublechecking the API documentation, I seem to remember some API method calls differed for C++ vs Java, and some that are available in one aren't in the other. I think matlab uses Java? Anyway, I could be completely wrong, but that may be a place to start.