Installing Jython on Ubuntu
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
If you have ubuntu 19.04, you can install with apt
sudo apt install jython
When you type in jython
, the shell looks for a program with that name in the PATH
. You should either call the program with its full path:
# ~ is an abbreviation for your homedir
~/jython2.5.2/bin/jython
or add the directory with the executable to your PATH
:
PATH=$HOME/jython2.5.2/bin:$PATH
If you want the latter to persist across terminal sessions, add it to your ~/.bashrc
.