Follow me as I struggle with rogue technology, insane programmers, and impossible math questions in a battle to the death.

Monday, January 05, 2009

Install Jython on Mac OS X 10.5

As someone who has been shackled by the verbose syntax of Java for many years I'm excited by the prospects of using Python on top of Java through Jython.

The installation instructions were simple, but a few steps were missing for a Mac environment (and I assume a GNU/Linux environment).

After installing:

1. Go to jython/bin and run chmod +x jython
2. Go to the base jython directory and run bin/jython once
3. Edit your ~/.profile file and add the absolute path of your jython/bin directory to the path variable (e.g.: export PATH=/opt/local/bin:/Users/jacob/jython2.5b0/bin:$PATH)

My eventual goal is to use Django on top of Apache Tomcat. This goal may require adding a JYTHONPATH variable to my .profile, but I haven't gotten that far yet.

Labels: ,