Visual COBOL Run-time Console in Linux

I am new to COBOL Eclipse tools,  Hope someone help me to figure it out

On Windows OS, when  I run COBOL tutorials, I can see the result in Prompt Windows directly from Eclipse.

But on Redhat Enterprise Linux. there is nothing to show the result from Eclipse when I run the COBOL application.

I need to test the application outside Eclipse.

Is there any configuration that needs to be setup under Linux?  I want to see the same behavior as Windows.

Any help is really appreciated.

  • Verified Answer

    Hello jzhang18:

    How do you view the Eclipse IDE when running Eclipse on Red Hat? Are you viewing Eclipse directly on the Red Hat desktop, or through an X-server running on Windows?  Or on the console of a VM running on Windows?

    I created a hello-world project using Visual COBOL version 2.3 for Eclipse on the Red Hat desktop. At first I included only

    display "hello world".

    This ran quickly, and the output window appeared only in a flash then disappeared . Then I added:

    stop "stopped, press a key to continue".

    As the last statement in the procedure division. The output window appeared, and stopped allow it to be seen by the user. 

    If you add a 'stop' statement to the end of your hello world program, does this help the output window to appear on your system?

  • I login into my physical Red Hat machine with my account,  from console, I switch to a new user account called "cobol" which I use to install Visual COBOL.   I run xhost ,   then under "cobol" account,  I run eclipse as command to start Eclipse IDE.  

    What does your output window look like,  Does it look like the pop-up Console on MS Windows?

  • I login into my physical Red Hat machine with my account,  from console, I switch to a new user account called "cobol" which I use to install Visual COBOL.   I run xhost ,   then under "cobol" account,  I run eclipse as command to start Eclipse IDE.  

    What does your output window look like,  Does it look like the pop-up Console on MS Windows?

  • Verified Answer

     Thank you, Dan

       I found the issue,  Eclipse call xterm command to show the result.

    But by default, RED HAT Enterprise does not install xterm package.   After I did this installation:

    sudo yum install xterm

    Everything is working now.

  • Verified Answer

     Thank you, Dan

       I found the issue,  Eclipse call xterm command to show the result.

    But by default, RED HAT Enterprise does not install xterm package.   After I did this installation:

    sudo yum install xterm

    Everything is working now.

  • I am running Eclipse on a Red Hat desktop that appears on Windows as a result of running a Red Hat VM under virtualization software (Oracle VirtualBox) on Windows.  This desktop is equivalent to the desktop that would be displayed on a physical monitor connected to a physical machine running Red Hat.

    When I run the hello-world program, the application output window appears in a way similar to how it appears when Eclipse is run on Windows, that is, it appears as a separate window on the desktop.  On the Red Hat desktop, the application output window is an instance of xterm.

    In your setup, to see the Eclipse window itself, on Windows I assume you are running X-server software such as ViewNow.  In the environment on Red Hat in which you invoke Eclipse, I assume you have a DISPLAY environment variable pointing to your X-server on Windows.  I would assume the xterm application output window would have access to the same DISPLAY environment variable.

    OK, yes now I see that you have discovered that xterm was not installed on your Red Hat system.  The Release Notes for Visual COBOL do have a small note about this; they say:

    • Xterm, the terminal emulator for the X Window System, is part of your UNIX/Linux distribution but is not

    installed by default. Use your UNIX/Linux installation media to install it.

    I do not remember having to install xterm on my Red Hat machine, but I am running Red Hat 7.1.