ubuntu 安装成功DB2 不能启动图形界面

为当前最终发行版之前的所有版本提供支持
回复
lemon
帖子: 3
注册时间: 2006-06-09 16:49
送出感谢: 0
接收感谢: 0

ubuntu 安装成功DB2 不能启动图形界面

#1

帖子 lemon » 2006-06-12 15:35

参考"Installing DB2 Version 8.2 on systems that use .deb packages" (http://www.tldp.org/HOWTO/DB2-HOWTO/deb.html) 一文顺利的在ubuntu 6.06上安装成功DB2, 但成功启动db2start 后,启动db2cc报如下错:

db2inst1@ccs-laptop:~$ db2cc
Exception in thread "main" java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEn vironment
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:177)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi ronment.java:90)
at java.awt.Font.initializeFont(Font.java:332)
at java.awt.Font.<init>(Font.java:367)
at javax.swing.plaf.FontUIResource.<init>(FontUIResource.java:57)
at com.sun.java.swing.plaf.motif.MotifLookAndFeel.initComponentDefaults( MotifLookAndFeel.java:215)
at com.ibm.db2.tools.common.plaf.motif.DB2MotifLookAndFeel.initComponent Defaults(Unknown Source)
at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel. java:110)
at com.ibm.db2.tools.common.plaf.motif.DB2MotifLookAndFeel.getDefaults(U nknown Source)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:417)
at com.ibm.db2.tools.common.CommonUIManager.setLookAndFeel(Unknown Sourc e)
at com.ibm.db2.tools.common.CommonUIManager.setLookAndFeel(Unknown Sourc e)
at com.ibm.db2.tools.common.CommonUIManager.initialize(Unknown Source)
at CC.setLookAndFeel(Unknown Source)
at CC.<init>(Unknown Source)
at CC.main(Unknown Source)
DB2JAVIT : RC = 1

通过google查找到本论坛类似错误:
http://www-900.ibm.com/cn/support/forum ... ?tid=78929

设置2个环境变量成功,但
在db2inst1用户下运行 xhost提示如下:
db2inst1@ccs-laptop:~$ xhost +
xhost: unable to open display ""

切换到root用户下运行 xhost 提示如下:
s@ccs-laptop:~$ sudo xhost +
Password:
access control disabled, clients can connect from any host

但切换到db2inst1用户下运行db2cc错误依旧。

谢谢!请求帮助!
回复

回到 “老旧版本支持”