Using python class methods inside java

I have three different classes written in python. They contain several methods that I want to use in my java program (by creating objects from these python classes and using these objects to call methods). In fact, my level in java can be intermediate. However, I am completely new in python. I read that you can use Python class methods inside java, but there is no clear way that is well explained. So please help me with a script or tutorial or any advice that will help to understand the use of python class methods in java.

+4
source share
1 answer

Jython is the way to go. If you have a few hours, I would recommend that you go through the tutorial .

If you're interested in seeing how jython can be used inside java, skip: http://wiki.python.org/jython/LearningJython#integrating-jython-python-into-java

+4
source

Source: https://habr.com/ru/post/1437582/


All Articles