Home Code Other Software

Table of Contents

Why not just use Java Readline?

For several reasons.


Well, why don’t you fix Java Readline, instead?

Because I wanted to start fresh, with a new API.


What about JLine?

JLine is certainly useful, especially since it works on Unix-like systems and on Windows. However, it isn’t as functionally complete as Editline. For instance, it isn’t as configurable, and it doesn’t support breadth of editing commands that Editline supports.


Why use Editline, instead of GNU Readline?**

Largely because of licensing. Editline is BSD-licensed, whereas GNU Readline is GNU-licensed. The BSD license is more liberal.


I’m on a Mac, and I can’t get Java to find the damned shared library!

On Mac OS X, using LD_LIBRARY_PATH may not suffice. You may need to set DYLD_LIBRARY_PATH, instead. For instance, suppose you copied libjavaeditline.jnilib to $HOME/lib. You may need to add this environment variable, to get Java to see it:

export DYLD_LIBRARY_PATH=$HOME/lib