How to call Java From Visual Cobol ?

Could you please provide an example of calling Java from Visual Cobol ?

Including parameter and return value ?

I've checked the following site , but it looks a bit complicated

and I don't know if it's the only correct way....

https://www.microfocus.com/documentation/visual-cobol/vc60/DevHub/BKDIDIJAFCS005.html

Thank you