Consultor Eletrônico



Kbase 20640: -cp: Illegal Argument Error on SonicMQ
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   17/12/2004
SUMMARY:

Sometimes when you use some JDK versions with SonicMQ you can
encounter an error similar to the following when you start up any
of the .bat files provided by SonicMQ:

-cp: illegal argument
usage: java [-options] class

where options include:
-help print out this message
-version print out the build version
-v -verbose turn on verbose mode
-debug enable remote JAVA debugging
-noasyncgc don't allow asynchronous garbage collection
-verbosegc print a message when garbage collection occurs
-noclassgc disable class garbage collection
-ss<number> set the maximum native stack size for any thread
-oss<number> set the maximum Java stack size for any thread
-ms<number> set the initial Java heap size
-mx<number> set the maximum Java heap size
-classpath <directories separated by semicolons>
list directories in which to look for classes
-prof[:<file>] output profiling data to .\java.prof or .\<file>
-verify verify all classes when read in
-verifyremote verify classes read in over the network [default]
-noverify do not verify any class
-nojit disable JIT compiler
Press any key to continue . . .

SOLUTION:

This problem is directly related to the JDK version you are using,
and can be fixed with a change in the .bat files related to SonicMQ:

Change the -cp parameter to -classpath. Some JDK versions
(like 1.3) now provide support for -cp and -classpath as the
same parameter.