i have install DB2 V9.1 Databass, on my system with 1Gb ram and 1.7 Ghz processor on RHEL 5.2,
when i run command for DB2 GUI view
#db2cc
it give this error
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Exception in thread "main" java.lang.NoClassDefFoundError: sun.awt.X11.XToolkit
at java.lang.J9VMInternals.initialize(J9VMInternals.java:127)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:131)
at java.awt.Toolkit$2.run(Toolkit.java:864)
at java.security.AccessController.doPrivileged(AccessController.java:191)
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.<init>(Unknown Source)
at CC.main(Unknown Source)
DB2JAVIT : RC = 1
installation of DB2 database
do you have the x window system installed?
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
DB2 on Linux
Salam,
Run command xhost +
Regds
-A.A
Run command xhost +
Regds
-A.A
no, you should run "xhost +localhost" as the user you logged in as, and then type "env DISPLAY=localhost:0 db2cc" as the user you're executing the db2cc command as.
NEVER EVER RUN "xhost +"
NEVER EVER RUN "xhost +"
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
lambda wrote:no, you should run "xhost +localhost" as the user you logged in as, and then type "env DISPLAY=localhost:0 db2cc" as the user you're executing the db2cc command as.
NEVER EVER RUN "xhost +"
whats the reason to not run "xhost+" command
and when i run env DISPLAY=localhost:0 db2cc
its still end with same error
describe your situation in more detail.
which username do you log into the system as?
do you log into the graphical environment?
do you type "su" after that? "sudo -s"?
which user do you run db2cc as?
you're almost always better off using xauth instead of xhost.
which username do you log into the system as?
do you log into the graphical environment?
do you type "su" after that? "sudo -s"?
which user do you run db2cc as?
do you know what "xhost +" does? if you did, you wouldn't ask that.whats the reason to not run "xhost+" command
you're almost always better off using xauth instead of xhost.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?