If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Control Center (db2cc)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-06-07, 10:34
wehrle wehrle is offline
Registered User
 
Join Date: Jul 2005
Posts: 99
Question Control Center (db2cc)

AIX 5.3
DB2 8.2.2

I am using Control Center from my Windows pc and it seems to work but it tends to be slow.

I am curious what I am missing regarding running db2cc on the serer. When I try, I get "Exception in thread "main" java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEnvironment ... DB2JAVIT : RC = 1"

What must I do/use to be able to use db2cc on the server?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 02-06-07, 10:57
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
cc

be logon in instance owner or db2 client instance
set correct setting for jdk_path in dbm/admin cfg
if trying db2cc from putty session : not possible
you need a graphical session or x-window that will reroute graphic to windows x-manager
host + need to be set in windows
in solaris : set DISPLAY=windowsipaddress:0.0
slow because of java execution needing cpu/memory
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #3 (permalink)  
Old 02-06-07, 11:10
wehrle wehrle is offline
Registered User
 
Join Date: Jul 2005
Posts: 99
I do log in as the instance owner. Both JDK_PATH and JDK_PATH_64 for the admin cfg have the same value. The instance is a 64-bit instance. The Java path is to /usr/java14_64. JDK_PATH for the dbm cfg has the same path. Do I have to have a 32-bit JDK installed as well? I do use an X-window application and I do export my DISPLAY.
Reply With Quote
  #4 (permalink)  
Old 02-06-07, 11:52
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I am not sure about AIX, but the same issue occurs in Linux and is fixed by executing: "xhost +" as root (do not type the quotes).

Andy
Reply With Quote
  #5 (permalink)  
Old 02-07-07, 03:00
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
x win

the last command xhost + is to be typed in the x-window to allow all users to come in
the message you get is a xmanager problem on aix
checking out
is the db2profile executed (call from .profile)
the values of libpath and ld_library_path and ld_library_path64 ?
also try java -version
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8

Last edited by guyprzytula; 02-07-07 at 03:09.
Reply With Quote
  #6 (permalink)  
Old 02-08-07, 11:25
wehrle wehrle is offline
Registered User
 
Join Date: Jul 2005
Posts: 99
Thanks all. I got it now. My problem was that I was not executing the .profile.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On