Parent: HintsAndTips
Introduction
DERBY-1447 is a request for enhancement of Derby's IJ tool, adding a command line history.
Until this feature is implemented in IJ, users on some platforms/shells need to employ workarounds in order to enjoy IJ with a command history and other convenient command editing capabilities. This page is intended to describe such workarounds.
With a full Derby installation/build, you can start IJ by running for example the following command on the command line:
java -jar lib/derbyrun.jar ij
Microsoft Windows command windows (cdm.exe and friends) seem to provide native command history and editing features automatically when running ij from the command line.
On Unix/Linux systems, workarounds are usually needed.
Workarounds
Using jEdit
Relatively new versions of
jEdit support the
Console plugin, which allows you to run shell command in jEdit's environment. This plugin provides a command history and other features when running IJ from the console.
Download, install and start a recent version of
jEdit. On the jEdit menu, go to Plugins --> Plugin Manager.
Select the Install tab.
Select the Console plugin and Install
Restart jEdit if necessary
Start the console via Plugins --> Console --> Console
Start IJ as you would do in a regular terminal window.
You can select previous and next commands using up and down arrows. To move within a command, use (for instance) side arrows.
Using JLine
JLine has been reported to work with IJ. JLine users, please add workaround info here...
Using Emacs
Emacs has been reported to work with IJ. Emacs users, please add workaround info here...