4. Py4J Java API — Py4J

Previous topic

3. Py4J Python API

Next topic

5. Frequently Asked Questions

4. Py4J Java API

The Java API is under active development and will be refactored in the next releases. You can browse the javadoc, but most classes are not documented yet.

For now, the best way to use the API is to:

  1. Create a class that extends the DefaultGateway.
  2. Initialize a GatewayServer with your newly created class.
  3. Call the Gateway.start() method to enable your Python program to access your gateway.

Questions/Feedback?

blog comments powered by Disqus