I am using WMQI V2.1. I want to import a XML file by command line. I used IC01 supportpac. I used "mqsiimportmsgflows" command. First I have an error:
'java' is not recognized as an internal or external command,operable program or batch file.
I solved the problem by the way modifying "mqsiimportmsgflows.bat" file. The first bat file as follow:
@echo off
if not exist mqsi.dtd goto nodtd
if %1""=="" goto noparam
set IMF_CLASSPATH=.;.\ic01.jar;..\classes\com.ibm.mq.jar;..\classes\jfaceall.jar;..\classes\swingall.jar;..\classes;..\classes\xml4j.jar;..\classes\broker.jar;..\classes\config.jar;..\classes\argo.jar;..\classes\webdav.jar;..\lib;..\lib\rt.jar;..\lib\math.jar;..\lib\i18n.jar;%classpath%
java -cp "%IMF_CLASSPATH%" com.ibm.broker.config.util.ImportMsgFlows %1 %2 %3
goto end
:nodtd
echo.
echo The file 'mqsi.dtd' does not exist in this directory.
echo.
echo Please ensure this program is launched from the mqsi_root_dir\Tool
echo directory.
goto end
:noparam
java com.ibm.broker.config.util.ImportMsgFlows -?
:end
then I modify as follow:
@echo off
if not exist mqsi.dtd goto nodtd
if %1""=="" goto noparam
set IMF_CLASSPATH=.;.\ic01.jar;..\classes\com.ibm.mq.jar;..\classes\jfaceall.jar;..\classes\swingall.jar;..\classes;..\classes\xml4j.jar;..\classes\broker.jar;..\classes\config.jar;..\classes\argo.jar;..\classes\webdav.jar;..\lib;..\lib\rt.jar;..\lib\math.jar;..\lib\i18n.jar;%classpath%
.\bin\java -cp "%IMF_CLASSPATH%" com.ibm.broker.config.util.ImportMsgFlows %1 %2 %3
goto end
:nodtd
echo.
echo The file 'mqsi.dtd' does not exist in this directory.
echo.
echo Please ensure this program is launched from the mqsi_root_dir\Tool
echo directory.
goto end
:noparam
.\bin\java com.ibm.broker.config.util.ImportMsgFlows -?
:end
but I have another error like this:
Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/broker/config/util/ImportMsgFlows
Please tell me what I have to do?
'java' is not recognized as an internal or external command,operable program or batch file.
I solved the problem by the way modifying "mqsiimportmsgflows.bat" file. The first bat file as follow:
@echo off
if not exist mqsi.dtd goto nodtd
if %1""=="" goto noparam
set IMF_CLASSPATH=.;.\ic01.jar;..\classes\com.ibm.mq.jar;..\classes\jfaceall.jar;..\classes\swingall.jar;..\classes;..\classes\xml4j.jar;..\classes\broker.jar;..\classes\config.jar;..\classes\argo.jar;..\classes\webdav.jar;..\lib;..\lib\rt.jar;..\lib\math.jar;..\lib\i18n.jar;%classpath%
java -cp "%IMF_CLASSPATH%" com.ibm.broker.config.util.ImportMsgFlows %1 %2 %3
goto end
:nodtd
echo.
echo The file 'mqsi.dtd' does not exist in this directory.
echo.
echo Please ensure this program is launched from the mqsi_root_dir\Tool
echo directory.
goto end
:noparam
java com.ibm.broker.config.util.ImportMsgFlows -?
:end
then I modify as follow:
@echo off
if not exist mqsi.dtd goto nodtd
if %1""=="" goto noparam
set IMF_CLASSPATH=.;.\ic01.jar;..\classes\com.ibm.mq.jar;..\classes\jfaceall.jar;..\classes\swingall.jar;..\classes;..\classes\xml4j.jar;..\classes\broker.jar;..\classes\config.jar;..\classes\argo.jar;..\classes\webdav.jar;..\lib;..\lib\rt.jar;..\lib\math.jar;..\lib\i18n.jar;%classpath%
.\bin\java -cp "%IMF_CLASSPATH%" com.ibm.broker.config.util.ImportMsgFlows %1 %2 %3
goto end
:nodtd
echo.
echo The file 'mqsi.dtd' does not exist in this directory.
echo.
echo Please ensure this program is launched from the mqsi_root_dir\Tool
echo directory.
goto end
:noparam
.\bin\java com.ibm.broker.config.util.ImportMsgFlows -?
:end
but I have another error like this:
Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/broker/config/util/ImportMsgFlows
Please tell me what I have to do?