One Star

[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.
15 REPLIES
One Star

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

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

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

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.
Moderator

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

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
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

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

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
Moderator

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

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
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

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

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
Moderator

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

Hi mkhatib,
What your job design looks like? Have you tried another job to see if this issue repro?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

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

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
Moderator

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

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
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

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

Hi Sabrina,
i'm working on windows 7,
i have no error in the job building.
this is the screen shot of the job building.
Best regards,
Mohammed
Moderator

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

Hi,
The screenshot of "Build job"(export job). Since v5.4.0, the 'Export job' option is renamed as 'Build job'
Please see my screenshot.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

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

Hi Sabrina,
Yes i used also build job in my export.
with the same options as yours.
Best regards,
Mohammed
One Star

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

Make sure there is no special characters in your path
using 2 disks is not recommanded, on your screenshoot, I see C:\ and D:\
One Star

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

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
Moderator

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

Hi mkhatib,
It is glad to see your issue fixed and thanks for your feedback. Could you please click the "Set this topic as resolved" link which is right underneath your initial post? This way, other users will be informed that this thread has been resolved.
Many thanks
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.