Question ID : 207
Created on 2013-07-19 at 4:02 AM
Author : Veryant Support [support@veryant.com]
Online URL : http://support.veryant.com/support/phpkb/question.php?ID=207
When you get this error:
"No X11 DISPLAY variable was set, but this program performed an operation which requires it."It means that isCOBOL is trying to access the AWT/SWING GUI Interface and your system doesn't have that.
If your program doesn't have a GUI interface, you can try to set this property in your run command line:
iscrun -J-Djava.awt.headless=true ...or
java -Djava.awt.headless=true ...If your cobol program includes some textual ACCEPT/DISPLAY statements, you'll need to use isCOBOL's CHARVA toolkit by adding a '-t' switch to your command line:
iscrun -t ...This automatically sets this configuration variable needed to activate CHARVA:
iscobol.guifactory.class=com.iscobol.gui.client.charva.GuiFactoryImpl