how to set classpath for broker_jms command line utility (Wi

I get NoClassDefFoundError (for javax/jms/JMSException) when I try to run broker_jms.exe. The missing class is contained in jms.jar, but setting classpath does not help.

Here is a batch file that I use:
Echo off
set CLASSPATH=.
set CLASSPATH=%CLASSPATH%;C:\webMethods61\Broker\lib\jms.jar
set CLASSPATH=%CLASSPATH%;c:\webMethods61\Broker\lib\xerces.jar

echo classpath=%CLASSPATH%
broker_jms.exe -h

When I run the above batch file I get this error:
C:\webMethods61\Broker\bin>Echo off
classpath=.;C:\webMethods61\Broker\lib\jms.jar;c:\webMethods61\Broker\lib\xerces.jar
Exception in thread “main” java.lang.NoClassDefFoundError: javax/jms/JMSException

How do I tell the broker_jms.exe where to find the JMSException class?

I found that this works.

broker_jms.exe -classpath %CLASSPATH% -h