There are several threads in this forum already on the topic of using Java to work with the OTA API. Are any of those helpful?
What do you need to do with the API?
What version of the QC product are you using? Starting with v11.0 there is a REST interface. It doesn't provide all the functionality available in the COM interface, but it might be enough for what you need to do.