LINUX排除cicstg 配置工具ctgcfg启动时的报错

晚上,在虚拟机设置好ibm jdk的运行环境后,尝试启动ctg的配置工具,在shell命令符执行ctgcfg命令报错,提示找不到相关的so文件,循着报错信息,一路排查,一路尝试,最后终于解决问题,终于成功启动ctgcfg配置工具窗口,下面为排障过程,重点地方,会用红色字体标注。。

[root@ibmtest ~]# cd /opt/ibm/cicstg
[root@ibmtest cicstg]# ls
bin deployable installlogs lib msgs readme.html sdk wlp
classes icons installResponseSamp.txt lib64 product.xml readme.txt uninstall91
copybook include jvm170 license properties samples uninstallResponseSamp.txt

[root@ibmtest bin]# ./ctgcfg
CTG8801I CTGCFG – CICS Transaction Gateway 配置工具启动程序
CCL0002I (C) Copyright IBM Corporation 2002, 2014. All rights reserved.
java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at com.ibm.ctg.util.CTGLaunch.loadClass(Unknown Source)
at com.ibm.ctg.util.CTGLaunch.main(Unknown Source)
Caused by: 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:222)
at java.awt.Window.<init>(Window.java:547)
at java.awt.Frame.<init>(Frame.java:432)
at javax.swing.JFrame.<init>(JFrame.java:236)
at com.ibm.ccl.iface.ConfigTool.main(Unknown Source)
… 6 more
CTG6121E 找不到 Java 运行时类

阅读更多