CommandHistoryInIj

Parent: HintsAndTips

  1. Introduction
  2. Workarounds
    1. Using jEdit
    2. Using JLine
    3. Using Emacs

Introduction

[WWW] 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 [WWW] jEdit support the [WWW] 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.

  1. Download, install and start a recent version of [WWW] jEdit.

  2. On the jEdit menu, go to Plugins --> Plugin Manager.

  3. Select the Install tab.

  4. Select the Console plugin and Install

  5. Restart jEdit if necessary

  6. Start the console via Plugins --> Console --> Console

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

last edited 2008-04-23 15:12:43 by JohnHEmbretsen