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
_AnonymousUser
Specialist III
Specialist III

Hi,
         I have installed JDK 1.8.45 and TOS 6.0.
When i try to run the jobs created by me or the demo jobs I get the below error..
Error: Could not find or load main class demo.t05_filelookup_0_1.t05_FileLookup
Thanks..
Anonymous
Not applicable
Author

Hi,
         I have installed JDK 1.8.45 and TOS 6.0.
When i try to run the jobs created by me or the demo jobs I get the below error..
Error: Could not find or load main class demo.t05_filelookup_0_1.t05_FileLookup
Thanks..

Hi, I have the same configuration, and also gives me the error, TOS-DI-5.5.1 works perfect, but the version 6 gives me error in the main class
Anonymous
Not applicable
Author

Hi , 
I have the same error , I am using Talend 6 and java 8 . This worked for me on before I formatted my comp so I am not sure it is java version issue .I would like to have help on that . 
Thanks 
Anonymous
Not applicable
Author

Hi
Can you first confirm that your installation path of v6 does not contain any space character as previously noted in this thread?
Elisa
Anonymous
Not applicable
Author

It does not . 
Liana
Anonymous
Not applicable
Author

Hi guys,
Could not find or load main class

Did you get this issue when running a job?
Are you using proxy setting? Could you please take a look at a related forum: https://community.talend.com/t5/Installing-and-Upgrading/Could-not-find-or-load-main-class/td-p/1735...( https://community.talend.com/t5/Installing-and-Upgrading/Could-not-find-or-load-main-class/td-p/1735...) to see if this solution works for you?

Java JDK 1.8 installed.
JAVA_HOME is set to the <JDK 1.8="" dir="">\jre</JDK> directory. Run "echo %JAVA_HOME%" in a cmd prompt (assuming you're on Windows) to confirm this. Just run "echo JAVA_HOME" if you're on Linux.
This is an example of my maven_user_settings.xml file (with the proxy address and port changed).  However as you are getting Talend to start this may not be your problem.

<SETTINGS xmlns="">
xmlns:xsi=""
xsi:schemaLocation=" ">
<PROXIES>
<PROXY>
<ACTIVE>true</ACTIVE>
<PROTOCOL>http</PROTOCOL>
<HOST>proxy.mynetwork.local</HOST>
<PORT>3000</PORT>
</PROXY>
</PROXIES>
</SETTINGS>


Your feedback will be appreciated.
Best regards
Sabrina
Anonymous
Not applicable
Author

Have you checked if the Java version on your client PC is the same as the version on the remote server?
Anonymous
Not applicable
Author

Hi ,I am using Talend open studio for esb and facing similar issues.My workspace path does not have any spaces and java class path is also properly set.Some simple dummy jobs like tmsgbox are running without any error but for jobs such as lookups etc the error comes
error:could not find or load main class
please help me resolve the issue.
Anonymous
Not applicable
Author

Hi,
It happens to me too since I have upgraded to Talend 6.2.0
In my case, it is not a problem that occur every time. If it happens, I close the job, open it again and most of the time it will work without doing anything more...
I don't recall this weird behavior with Talend 6.1 ...
Anonymous
Not applicable
Author

Hi,
This behavior is really annoying as most of the time I have to try and run my jobs several times before succeeding. 
Any solution ?
Thanks,
Philippe.