Setting up the UNIX curses library for EGL run time
When you deploy an EGL text program on AIX or Linux, the EGL run time 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 run time 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.
To enable the EGL run time to access the UNIX curses terminal library on AIX or Linux, fulfill several steps in the UNIX shell environment. In each of the first two steps, installDir refers to the run-time installation library:
- Modify the LD_LIBRARY_PATH environment variable to include the shared object libCursesCanvas6.so, which is provided in the run-time installation library--
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH: /installDir/bin- Modify the CLASSPATH environment variable to add fda6.jar and fdaj6.jar--
export CLASSPATH=$CLASSPATH: /installDir/lib/fda6.jar: /installDir/lib/fdaj6.jarThe previous information must be typed on a single line.
- 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.