What is Jython? Any clarifications?


I am trying to find a straightforward conceptualization of Jython and its usage. I understand that it is incorporating java code into Python.

I can use regular Python fine, in IDLE or PyCharm. Is Jython simply how a normal .py file incorporates a known Java .class and its functionality? Is it a .jy save?
I'd like to be able to write Python code to access my RTSclient .class and its RTS player's unit commanding methods, constructor.

What might this code look like?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Walter RitzelSenior Software EngineerCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
beavoidAuthor Commented:

Great links

I like this page below that has a simple Swing  .py       (uses javax Swing in a .py file)

It answered many questions in one place!

just over half down . . here

How do I set up Jython's existence in Pycharm? I'm also curious as to IDLE. Best resources?

would my .py  Jython needs look something like

import RTSclient.java as RTSclient    # or just RTSclient.class? or RTSclient? where does it look for the .class? right there? project resources?
creating. . .

client = RTSclient(args)     # (serverAddress, clientNumber)

. . . . . . .
then later, when needed
client.moveUnits(whichUnits, toXlocation, toYlocation)

sound good?
Walter RitzelSenior Software EngineerCommented:
I saw that you have opened another question, with your more specific doubts, so I'll answer there. Please close and assign the points for this question.
beavoidAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.