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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Error: Could not find or load main class. when running a Talend Job

I have the same issue with our dev environment. I get error Error: Could not find or load main class. Take note, that it works in our pre-prod environment and setup is identical.
Things to note:
1. Talend is installed in linux machine with no spaces in directory path at all.
2. Talend is root user so it has access to all files.
3. if we contact support most likely it will send us through this forum.
Thanks,
David

Labels (2)
51 Replies
Anonymous
Not applicable
Author

Hi shanshan,
Here is a response in your another topic:http://www.talendforge.org/forum/viewtopic.php?id=38274
Could you please have a look at it?
Best regards
Sabrina
_AnonymousUser
Specialist III
Specialist III

Hi,
It also give me this error when running job. How can I get jdk 1.6? I cannot find it in google. 
Please help.
Lex
Anonymous
Not applicable
Author

Hi Lex,
You can get oracle JDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html.
Best regards
Sabrina
_AnonymousUser
Specialist III
Specialist III

Hi,
I am getting this error for all jobs in talend studio whenever I tries to run any job.
I am using java 7 version.
"Error: Could not find or load main class "
Anonymous
Not applicable
Author

Hi Smita B,

The error "Could not find or load main class" is usually caused the blank space in the installation path. Could you please take a look at it?

Best regards
Sabrina
Spretorius
Contributor
Contributor

Hi 
Would just like to find out if this has been resolved, before logging a bug.
Getting the same "Could not find or load main class" when running a job on TAC, as a schedule on a job server. It does not happen all the time only at random times. All jobs runs fine on studio java is setup right and no spaces in installation directory.
Regards,
Stephan
_AnonymousUser
Specialist III
Specialist III

Hi,
Running into the same problem as above: 'Error: Could not find or load main class'
I have Java 1.8 and to run Talend Studio I'm using this hack:
I runs the studio, I'm able to connect to Salesforce source and import objects. The problem starts when I try to run the job (inside Talend Studio).
Any suggestions? Unfortunatelly I can't downgrade java.
Regards,
Daniel
Anonymous
Not applicable
Author

slaugHi,
Running into the same problem as above: 'Error: Could not find or load main class'
I have Java 1.8 and to run Talend Studio I'm using this hack:
I runs the studio, I'm able to connect to Salesforce source and import objects. The problem starts when I try to run the job (inside Talend Studio).
Any suggestions? Unfortunatelly I can't downgrade java.
Regards,
Daniel

Just to add more details, this is how I run Talend Studio:
C:\TOS\TOS_DI-Win32-20141207_1530-V5.6.1\TOS_DI-win32-x86.exe -vm "C:\Program Files (x86)\Java\jre1.7.0_51\bin"
So you can see the installation path and java vm which I am using.
a_vlad
Contributor
Contributor

Too many time gone, but still interesting
I have this error, when generate Job in folder outside Open Studio folders, like:
The same Job (manual copy) in:
- /Volumes/VM/TOS/OpenStudioDI_xxx/Jobs - work fine
- /Volumes/VM/Data/Jobs - file, with error - Error: Could not find or load main class.
no change in PATH or anything also, 
Java in PATH, JRE also
Anonymous
Not applicable
Author

Hi,
- /Volumes/VM/TOS/OpenStudioDI_xxx/Jobs - work fine
- /Volumes/VM/Data/Jobs - file, with error - Error: Could not find or load main class.
The blank space in the installation path probably cause  the error "Could not find or load main class".
Best regards
Sabrina