Related Entries

India PyCon 2009
Quick wallpaper changer
Load testing with Grinder
Adding namespace to XML
Opera RSS to OPML

« Relocation
» On-line discussion on Larry Ellison

Jython is great

Long overdue note on the ease and elegance of Jython.

Jython is a great time saver. It is a small download and installation is a very easy. It actually makes Java a bit more pleasing.

Some quick uses I’ve found so far include:

  1. Making quick test scripts to integrate different Java components.
  2. Adding such scripts write into an Ant task.
  3. Using the great pprint and dir functions to dive into Java classes and methods much faster than API documentation.

I am sure there are many more ways Jython can be used. For example, I checked in one old script that took about 15 minutes to write -- it provides a rudimentary interactive sql shell. The code couldn’t be simpler! A while back, I needed to access an Oracle database. SQL*Plus was not installed in the client machine and the installer was not available either. This script came in handy then.

  1. Just to mention:

    There's jdeveloper plugin for jython written by Brian Duff. Unfortunately plugin is 903 centric and will not work out of the box with jev 905 (fixes are trivial if you ignore deprecation warnings).

    It lacks good console (readline like), code completion (code insight) and class browser but it's generally very usable if you want to write simple jdev plugin as a proof of concept or if you need to quickly execute.

    It would be very nice from Oracle if they would integrate scripting language into their Java IDE. Think of jdev as nextgen emacs with less parentheses. :-)

    Posted by: Ivica Loncar on February 27, 2004 03:45 PM
  2. hmm.. interesting. Should try jython sometime.

    So, How's Bangalore? :)

    Posted by: hpnadig on March 17, 2004 08:17 PM
  3. I am using Jython to do RAD a business design. It makes testing the business logic much easier. If there is a requirement for optimization, then I am accessing the Jython code via an Interface so that the implementation can change to native java without the need to change the interface.

    It is nice.

    Posted by: Matthew Baldwin on July 2, 2004 10:18 AM