Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1066006
  • 博文数量: 239
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 3618
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-12 13:17
文章分类

全部博文(239)

文章存档

2021年(1)

2016年(1)

2015年(30)

2014年(91)

2013年(116)

分类: LINUX

2013-09-24 23:09:18

[db2inst1@app ~]$ db2cc
Exception in thread "main" java.lang.NoClassDefFoundError: sun.awt.X11.XToolkit (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:130)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:130)
at java.awt.Toolkit$2.run(Toolkit.java:864)
at java.security.AccessController.doPrivileged(AccessController.java:193)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:847)
at javax.swing.UIManager.initialize(UIManager.java:1296)
at javax.swing.UIManager.maybeInitialize(UIManager.java:1279)
at javax.swing.UIManager.getDefaults(UIManager.java:590)
at javax.swing.UIManager.get(UIManager.java:852)
at com.ibm.db2.tools.common.CommonUIManager.initialize(Unknown Source)
at CC.setLookAndFeel(Unknown Source)
at CC.(Unknown Source)
at CC.main(Unknown Source)
Caused by: java.lang.InternalError: Can't connect to X11 window server using '192.168.1.101:0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$000(X11GraphicsEnvironment.java:95)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:184)
at java.security.AccessController.doPrivileged(AccessController.java:193)
at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:173)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:192)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:130)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:101)
at sun.awt.X11.XToolkit.(XToolkit.java:127)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:192)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:130)
at java.awt.Toolkit$2.run(Toolkit.java:864)
at java.security.AccessController.doPrivileged(AccessController.java:193)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:847)
at javax.swing.ImageIcon.(ImageIcon.java:149)
at javax.swing.ImageIcon.(ImageIcon.java:168)
at com.ibm.db2.tools.common.CommonImageRepository.loadImageFromURL(Unknown Source)
at com.ibm.db2.tools.common.CommonImageRepository.loadImage(Unknown Source)
at com.ibm.db2.tools.common.CommonImageRepository.loadImage(Unknown Source)
at com.ibm.db2.tools.common.CommonImageRepository.getCommonIcon(Unknown Source)
at com.ibm.db2.tools.hc.gui.HealthCenterLegendAction.(Unknown Source)
at CC.getViewMenuActions(Unknown Source)
at CC.getRegisteredToolsActions(Unknown Source)
... 2 more
DB2JAVIT : RC = 1



解决方法:
1.root用户下执行
[root@app cmsdb]# env
HOSTNAME=app.main.dzb
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
SSH_CLIENT=192.168.224.1 2516 22
OLDPWD=/home/db2inst1/db2inst1/NODE0000/CMSDB/T0000006
SSH_TTY=/dev/pts/3
USER=root
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
MAIL=/var/spool/mail/root
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
INPUTRC=/etc/inputrc
PWD=/db2data/backup/cmsdb
LANG=zh_CN.UTF-8
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=1
HOME=/root
LOGNAME=root
SSH_CONNECTION=192.168.224.1 2516 192.168.224.136 22
LESSOPEN=|/usr/bin/lesspipe.sh %s
DISPLAY=localhost:11.0
G_BROKEN_FILENAMES=1
_=/bin/env


2.

[db2inst1@app ~]$ export DISPLAY=localhost:11.0(root的DISPLAY)
[db2inst1@app ~]$ xhost +
access control disabled, clients can connect from any host
[db2inst1@app ~]$ db2cc

3.然后执行db2cc命令即可启动

阅读(1856) | 评论(0) | 转发(0) |
0

上一篇:db2表空间查询

下一篇:DB2异机恢复

给主人留下些什么吧!~~