Search code examples
jython

Installing Jython on Ubuntu


  1. I downloaded jython_installer-2.5.2.jar from jython.org.
  2. Opened the terminal and gave this command:-

java -jar jython_installer-2.5.2.jar

  1. It was installed in a folder named jython2.5.2 in the home directory
  2. But whenever I open the terminal and give the command jython in the terminal I am shown a message saying Jython is not installed.

How can I fix this problem?

I can install Jython using sudo apt-get install jython, but the Jython in Ubuntu repositories is 2.2.1 and I want the new version..


Solution

  • To install Jython with super user privileges:

    sudo java -jar jython_installer-2.5.2.jar
    

    Select /usr/local/lib/jython, then create a symbol link of Jython to /usr/local/bin:

    sudo ln -s /usr/local/lib/jython/bin/jython /usr/local/bin/jython