Setting up the UNIX™ curses library for the EGL runtime
When you deploy an EGL text program on AIX®,HP-UX, Solaris, or Linux™ (either Intel™ or zSeries®), the EGL runtime tries to use the UNIX™ curses library. If the environment is not set up for the UNIX™ curses library or if that library is not supported, the EGL runtime tries to use the Java™ Swing technology; and if that technology is also not available, the program fails.
The UNIX™ curses library is required when the user runs an EGL program from a terminal emulator window or a character terminal.
- Modify the library path to include the libCursesCanvas7 library.
The library is provided in the runtime installation directory:
export library_var=$library_var:/installDir/bin- library_var
- One of the following:
- LD_LIBRARY_PATH for HP-Itanium and 64-bit HP-RISC, Linux™, and Solaris
- SHLIB_PATH for 32-bit HP-RISC
- LIBPATH for AIX®
- Set the TERM environment variable to the appropriate terminal
setting, as in the following example:
export TERM=vt100If terminal exceptions occur, try various terminal settings such as xterm, dtterm, or vt220.
- Run your EGL Java™ program
from the UNIX™ shell, as in the
following example:
java myProgramMake sure that the CLASSPATH environment variable identifies the directory in which your program resides.
For additional details on using the Curses library on UNIX™, refer to the UNIX™ man pages.