I installed DB2 8.1.1 FP 7 on an AIX system running AIX 5.2 in 32 bit
mode. The DB2 control center started up fine until I changed the
server to boot in 64 bit mode. Now db2cc fails. I have been told by
one of our Java experts that the error messages mean that java is not
finding its core libraries and he thinks the CLASSPATH is not being
set correctly. We tried to manually correct this without success (by
adding various jar files in jre/lib to the CLASSPATH). I have not
altered the instance's .profile or db2profile. The only thing that
changed was booting the machine in 64 bit mode.
Both the 32 bit instance and the 64 bit instance fail with the same
error. Each user points to the appropriate version of Java (ie. the 32
bit instance uses the 32 bit Java, and the 64 bit instance uses the 64
bit java). The sqllib/lib and bin of both instances also point to the
appropriate locations (ie. 32=>32 64=>64).
Exception in thread "main" java.lang.NoClassDefFoundError:
sun/awt/X11GraphicsEnvironment
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:180)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvir onment(GraphicsEnvironment.java:91)
at java.awt.Font.initializeFont(Font.java:333)
at java.awt.Font.<init>(Font.java:368)
at
javax.swing.plaf.FontUIResource.<init>(FontUIResou rce.java:65)
at
com.sun.java.swing.plaf.motif.MotifLookAndFeel.ini tComponentDefaults(MotifLookAndFeel.java:225)
at
com.ibm.db2.tools.common.plaf.motif.DB2MotifLookAn dFeel.initComponentDefaults(Unknown
Source)
at
javax.swing.plaf.basic.BasicLookAndFeel.getDefault s(BasicLookAndFeel.java:119)
at
com.ibm.db2.tools.common.plaf.motif.DB2MotifLookAn dFeel.getDefaults(Unknown
Source)
at javax.swing.UIManager.setLookAndFeel(UIManager.jav a:425)
at
com.ibm.db2.tools.common.CommonUIManager.setLookAn dFeel(Unknown
Source)
at
com.ibm.db2.tools.common.CommonUIManager.setLookAn dFeel(Unknown
Source)
at com.ibm.db2.tools.common.CommonUIManager.initializ e(Unknown
Source)
at CC.setLookAndFeel(Unknown Source)
at CC.<init>(Unknown Source)
at CC.main(Unknown Source)
DB2JAVIT : RC = 1