Hi Juliette, Py4J only transmits messages between Python and Java.
Each side is responsible for executing its respective code. Your java
classes need to be executed in a JVM so you need to start the JVM to
create an instance and call its methods. Py4J includes a few methods
(e.g., JavaGateway.launch_gateway) to help you start a JVM. Otherwise,
there are other Python-to-Java bridges that will start the JVM for you
(I think JPype does that).
HTH,
Barthelemy
> --
> You received this message because you are subscribed to the Google Groups
> "Py4J Support and Comments" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
py4j+uns...@py4j.org.
> To post to this group, send email to
py...@py4j.org.
> To view this discussion on the web visit
>
https://groups.google.com/a/py4j.org/d/msgid/py4j/09715a75-bb2e-40c2-a84e-4c501ac13de0%40py4j.org.