casapjmacfg error - No X11 DISPLAY variable was set, but this program performed an operation which requires it.

book

Article ID: 224190

calendar_today

Updated On:

Products

CA Workload Automation AE

Issue/Introduction

When attempting to run casapjmacfg, the following error is displayed...

Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
        at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:221)
        at java.awt.Window.<init>(Window.java:547)
        at java.awt.Frame.<init>(Frame.java:431)
        at java.awt.Frame.<init>(Frame.java:396)
        at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1844)
        at javax.swing.JOptionPane.getRootFrame(JOptionPane.java:1707)
        at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:874)
        at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:677)
        at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:648)
        at com.ca.sap.casapcfg.casapcfg.<init>(Unknown Source)
       at com.ca.sap.casapcfg.casapcfg.main(Unknown Source)

Environment

Release : 3.0

Component : Unicenter AutoSys Adapter for SAP

Resolution

The casapjmacfg utility is a GUI interface. If you are trying to run it via a terminal session into a headless server, you will need to be running an X Windows server application on your local desktop (ex. Xming), and you will need to make sure X11 forwarding is enabled in your terminal application.