3

Let's suppose I need to write a Java application and this application need to perform some tasks and I have a Python class that perform those tasks through its functions/methods.

I'd like to use this Python class methods/functions in my Java application, is it possible? Note that I'm talking about reading the output.

Thanks :)

Zignd
  • 6,896
  • 12
  • 40
  • 62

1 Answers1

3

Yes ,you can with Jython.

Jython programs can import and use any Java class. Except for some standard modules, Jython programs use Java classes instead of Python modules.

And the integration

Suresh Atta
  • 120,458
  • 37
  • 198
  • 307