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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] jars not found in the Talend autonomous Job Export

Hello,
I'm working in a Talend Job, i can execute it and it works fine.
when i try to export that job as an autonomous Job, it generate a Zip with file .bat for job execution.
but when i execute the job it generate an error for me: "could not find or load main class ..."
i checked out for the jar of the job and i did'nt find it, so i d'ont know why talend is not generating the job jar for me.
i'm using TOS_DI V5.4.1.
thanks for help.
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,
i resolved the issue by creating another workspace "C:/TalendJobs"
i was working with the default workspace that contains the '%' caracter in the path.
It seems that the solution was here:
This issue is usually caused by java environment variable configuration or installation directory contains space character.

and
I think this error means that the job didnt find your workspace

Thank you sabrina and Jcs19.
Best regards,
Mohammed

View solution in original post

15 Replies
Jcs19
Creator II
Creator II

I think this error means that the job didnt find your workspace
Anonymous
Not applicable
Author

Hi,
thank you for your reply.
i checked the windows batch i found the java instruction:
java -Xms256M -Xmx1024M -cp ../lib/dom4j-1.6.1.jar;../lib/jaxen-1.1.1.jar;../lib/mysql-connector-java-5.1.22-bin.jar;../lib/systemRoutines.jar;../lib/userRoutines.jar;.;xmltodatawarehouse_0_1.jar; testproject.xmltodatawarehouse_0_1.xmlToDatawarehouse --context=Default
but in the the generated Zip there is no jar called "xmltodatawarehouse_0_1.jar" and also i can't find the file "testproject.xmltodatawarehouse_0_1.xmlToDatawarehouse" is there any problem with the autonomous job export.
Anonymous
Not applicable
Author

Hi,
"could not find or load main class ..."

This issue is usually caused by java environment variable configuration or installation directory contains space character. What's your JDK version? 1.6?
Did you follow up document TalendHelpCenter:Installation requirements to set your Environment variable?
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi Sabrina,
My JAVA_HOME is configured at JDK 1.7.
I verified spaces and there is no space in the workspace path.
Best regards
Mohammed
Anonymous
Not applicable
Author

Hi,
I made a testing on Talend Open Studio for Data Integration 5.4.1 r111943, everything is going well.
Please see my screenshots for details
Best regards
Sabrina
0683p000009MEJi.png 0683p000009MESe.png 0683p000009MESj.png 0683p000009MEPR.png
Anonymous
Not applicable
Author

Hi Sabrina,
It's exactly what i have done, but at the end i have the error described before.
This is a screen shot of the excution.
Best Regards,
Mohammed
Anonymous
Not applicable
Author

Hi mkhatib,
What your job design looks like? Have you tried another job to see if this issue repro?
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi Sabrina,
I have two job with the same error.
To make it easy i created another job for testing and here is the job design.
and i have the same error as before when i launch it from the batch.
Best regards,
Mohammed
0683p000009ME6p.png
Anonymous
Not applicable
Author

Hi,
What's your OS? Could you please upload your screenshot of building job into forum? Is there any error log when you export your job script?
Best regards
Sabrina