gateway = JavaGateway()
java_object = gateway.jvm.mypackage.MyClass()
other_object = java_object.doThat()
other_object.doThis(1, 'abc')
gateway.jvm.java.lang.System.out.println('Hello World!')
Вызов Java из Python