Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
The .bat file was running absolutely fine on my local system, but when I copied the build job folder to other environment and tried running the job then I am getting an error while running the .bat file
below is the error:
C:\Users\cs_delivery\Desktop\Source File\XYZ_0.1\XYZ>java -Dtalend.component.manager.m2.repository=C:\Users\cs_delivery\Desktop\Source File\XYZ_0.1\XYZ/../lib -Xms256M -Xmx1024M -cp .;../lib/routines.jar;../lib/dom4j-1.6.1.jar;../lib/log4j-1.2.17.jar;xyz_0_1.jar; local_project.xyz_0_1.XYZ --context=Default
Error: Could not find or load main class File\XYZ_0.1\XYZ....lib
Got the purpose of the error now it's solved,
in the below path Source File has space between the words and when I was trying to run the .bat file it was considering " File" as the class name
C:\Users\cs_delivery\Desktop\Source File\XYZ_0.1\XYZ>
Error: Could not find or load main class File\XYZ_0.1\XYZ....lib
Got the purpose of the error now it's solved,
in the below path Source File has space between the words and when I was trying to run the .bat file it was considering " File" as the class name
C:\Users\cs_delivery\Desktop\Source File\XYZ_0.1\XYZ>
Error: Could not find or load main class File\XYZ_0.1\XYZ....lib