Running JMSAdmin on AIX
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Boaz_Inbal
Posted On:   Tuesday, May 28, 2002 05:49 AM

Hi : I'm having problems running JMSAdmin on AIX. This is the JMSAdmin.sh file: #!/bin/sh # ---------------------------------------------- # IBM MQSeries JMS Admin Tool Execution Script # for Unix variants # # Note that the properties passed to the java # program are defaults, and should be edited # to suit your installation if necessary # ---------------------------------------------- export WAS_HOME=/opt/WebSphere/AppServer export MQSeriesHome=/usr/mqm export libpaths=$libpaths:$WAS_HOME/java/jre/bin    More>>

Hi :


I'm having problems running JMSAdmin on AIX.


This is the JMSAdmin.sh file:


#!/bin/sh


# ----------------------------------------------


# IBM MQSeries JMS Admin Tool Execution Script


# for Unix variants


#


# Note that the properties passed to the java


# program are defaults, and should be edited


# to suit your installation if necessary


# ----------------------------------------------


export WAS_HOME=/opt/WebSphere/AppServer


export MQSeriesHome=/usr/mqm


export libpaths=$libpaths:$WAS_HOME/java/jre/bin


export libpaths=$libpaths:$WAS_HOME/java/lib


export libpaths=$libpaths:$WAS_HOME/java/jre/lib/ext


export libpaths=$libpaths:$WAS_HOME/lib


export libpaths=$libpaths:$MQSeriesHome/java/lib


java -classpath /usr/mqm/java/lib/com.ibm.mqjms.jar -


Djava.ext.dirs="$libpaths" -


DMQJMS_LOG_DIR=$MQ_JAVA_INSTALL_PATH/log -


DMQJMS_TRACE_DIR=$MQ_JAVA_INSTALL_PATH/trace -


DMQJMS_INSTALL_PATH=$MQ_JAVA_INSTALL_PATH


com.ibm.mq.jms.admin.JMSAdmin $*


When running I get :
Unable to initialize threads: cannot find class java/lang/Thread


Is it JMSAdmin problem or AIX classpath?
Any help would be appreciated!

   <<Less

Re: Running JMSAdmin on AIX

Posted By:   Rich_Carpenter  
Posted On:   Wednesday, May 29, 2002 04:15 AM

Boaz,


You're probably using a 1.1.x version of the jdk (perhaps 1.1.8 which ships with many AIX versions).
This version of the JDK needs to be told where to find the 'classes.zip' file if the -classpath
command line option is used.


A simple 'Hello' type program can illustrate this. There is a class, Hello.class, in directory
/dps/rcarpent/javastuff. The java classes.zip file is located in /usr/jdk_base/lib. Consider
these actual results, noting how the inclusion of classes.zip in the -classpath option changes
the results:


/dps/rcarpent/javastuff>java -classpath /dps/rcarpent/javastuff Hello
Unable to initialize threads: cannot find class java/lang/Thread

/dps/rcarpent/javastuff>java -classpath /dps/rcarpent/javastuff:/usr/jdk_base/lib/classes.zip Hello
Hello, this is from DVLP!!


The same error message is shown in the first example. Locate the classes.zip file on your
system and specifically include it in the -classpath option and see if that resolves
the problem you've encountered.


Rich

About | Sitemap | Contact