Wednesday, July 3, 2024
HomeLanguagesPythonJython – Introduction and Installation

Jython – Introduction and Installation

It’s not hidden that Java is a powerful and Python is a simple and easy language. To get them both together, Jython was introduced so it is both powerful and simple. It is a pure Java implementation of Python. It uses Python’s syntax and Java’s environment. It allows using features of Python in Java environment or to import Java classes in Python codes and hence, is very flexible. Jython can run on almost any platform which provides flexibility in application deployment and it also provides many libraries with many more APIs.

It is really beneficial for those who create applications in Java and are new to Python. Python has three implementations:

  • Cpython(mostly used)
  • Jython
  • IronPython

Installation of Jython

Windows

  • Download your copy from www.jython.org
  • It will be combined as a cross-platform executable JAR file
  • If you don’t have Java installed in your system you will need to grab a copy of it. you can download it from www.java.com and install it.
  • Double click on the JAR file and install it with “All” features installed

  • Find the jython.bat(windows) or jython.sh(Mac OS) file in the same folder where you installed Jython
  • Place this folder within your PATH environment variable
  • After all this has done you will be able to open up the command prompt, type jython and then hit the “enter” key

    jython-install-windows

Linux

To install Jython in Linux type the below command in the terminal.

sudo apt install jython

After typing this command provide your sudo password and that’s it. Linux will handle the rest. After installation, check whether Jython is installed correctly or not. See the below image for checking.

jython-install-linux

Shaida Kate Naidoo
am passionate about learning the latest technologies available to developers in either a Front End or Back End capacity. I enjoy creating applications that are well designed and responsive, in addition to being user friendly. I thrive in fast paced environments. With a diverse educational and work experience background, I excel at collaborating with teams both local and international. A versatile developer with interests in Software Development and Software Engineering. I consider myself to be adaptable and a self motivated learner. I am interested in new programming technologies, and continuous self improvement.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments