Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Jython on Ubuntu

Tags:

  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..

like image 232
rubicondude Avatar asked Apr 29 '11 19:04

rubicondude


People also ask

Where is Jython installed?

Basic Install After this completes, Jython is installed in the directory you selected. There's a script in the install directory, jython on Unix like systems or jython. bat on Windows, that will start up the Jython console which can be used to dynamically explore Jython and the Java runtime.

Does Jython require Python installation?

Yes. Jython is an implementation of the Python language in Java. We strive to ensure that Jython remains as compatible with CPython as possible. The latest Jython release (2.2) implements the same language as CPython 2.2 and many of the CPython standard library modules.


1 Answers

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 
like image 122
4 revs, 3 users 60% Avatar answered Oct 28 '22 12:10

4 revs, 3 users 60%