I want to run a .bat file with the next lines:
set projectLocation=E:\proyectos\YPFB_MOD-USER\ypfb_tr_mod-user-despliegues-qa-test\ypfb-tr-mod-user\ModUserTest
cd %projectLocation%
set classpath=%projectLocation%\bin;%projectLocation%\lib\*
java org.testng.TestNG %projectLocation%\testng.xml
pause
But the problem is I got the next error message:
E:\proyectos\YPFB_MOD-USER\ypfb_tr_mod-user-despliegues-qa-test\ypfb-tr-mod-user\ModUserTest\bin>cd E:\proyectos\YPFB_MOD-USER\ypfb_tr_mod-user-despliegues-qa-test\ypfb-tr-mod-user\ModUserTest
E:\proyectos\YPFB_MOD-USER\ypfb_tr_mod-user-despliegues-qa-test\ypfb-tr-mod-user\ModUserTest>java -cp E:\proyectos\YPFB_MOD-USER\ypfb_tr_mod-user-despliegues-qa-test\ypfb-tr-mod-user\ModUserTest\lib*;E:\proyectos\YPFB_MOD-USER\ypfb_tr_mod-user-despliegues-qa-test\ypfb-tr-mod-user\ModUserTest\bin org.testng.TestNG testng.xml
[TestNG] [ERROR]
Cannot find class in classpath: com.mc4.bo.Main
E:\proyectos\YPFB_MOD-USER\ypfb_tr_mod-user-despliegues-qa-test\ypfb-tr-mod-user\ModUserTest>pause
Presione una tecla para continuar . . .
I developed a java test using IntelliJIdea, all examples I found are in eclipse, I don't know what the purpose of the bin folder is, and there's no explanation about it. Are there files inside this folder?.
I don't know what the error is in the classpath.