Hi,
Jgurus,
i have problem here, i am invoking a batch file from my
java class using the command Runtime.getRuntime().exec(batch1.bat) now this file is setting some classpath and invoking batch2.bat with some parameters and this batch2.bat is invoking java command which is throwing a exception now i want trap this execption.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
:::::code for batch1.bat:::::
set classpath=d:\com\tech\sun\tcc.jar;d:\com\tech\sun\parameter.jar
set TMMHOME=d:\TMM
cd %TMMHome%\bin
testcom.bat -i D:/test1.xml -o D:/testresult.xml
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
:::::code for testcom.bat:::::
%_JAVACMD% -classpath %LOCALCLASSPATH% com.tech.sun.parameter
now when java is invoked it throws an error :
Exception in
thread "main" com.tech.test.runner.RunnerException: com
.snstech.testcompanion.runner.RunnerException: com.snstech.testcompanion.runner.
RunnerException: The specified constructor for aclass does not exist
pls. help me in this issue .....
thanks in advance
Abhijit
askment@yahoo.com