Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
kuwaryogi27
Creator
Creator

Unable to run batch file generated by talend

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

Labels (2)
1 Solution

Accepted Solutions
kuwaryogi27
Creator
Creator
Author

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

 

View solution in original post

1 Reply
kuwaryogi27
Creator
Creator
Author

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