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

Six Stars

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

Hello Experts,

 

I spent two days to find out why the Talend job is throwing error but still no luck, this seems to be a common problem but i can't figure out why this is happening.

 

I am extracting data from Salesforce, however when i run the job in the Talend Studio - i get below error :

 

"Error: Could not find or load main class" 

 

Talend Version 6.3

JAVA_HOME = C:\Program Files\Java\jre1.8.0_121\bin

Path =  %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin

Talend Installation : C:\Talend\6.3.1\studio\Talend-Studio-win-x86_64

Job WorkSpace: C:\Users\t00348\workspace

 

please help and let me know what is wrong

 

Ankur

 


Accepted Solutions
Six Stars

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

Hey,

 

apologize for late response, this problem was resolved by removing bin from below

 

 JAVA_HOME = C:\Program Files\Java\jre1.8.0_121\bin

 

thanks guys

 

A


All Replies
Moderator

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

Hi,

Is your java environment set correctly? Have you added some extra java library in the extensions folder where the java install path is?

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.
Eight Stars

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

Check out your <tos_install_directory>\workspace\.metadata folder.
You should see a .log file. Maybe that can provide additional details on what the error could be!
Six Stars

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

Hey,

 

apologize for late response, this problem was resolved by removing bin from below

 

 JAVA_HOME = C:\Program Files\Java\jre1.8.0_121\bin

 

thanks guys

 

A

Five Stars

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

Hi,

 

I have the same issue with talend, kindly let me where to remove the extra library in extension folder where java installation path. 

 

Thanks & regards,

Manikrish

Moderator

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

Hello,

For v6 of Talend products JDKv1.8 is required instead of JRE. Please ensure JDK bin is included in your PATH environment variable and is being reached.

Here is online document about:TalendHelpCenterSmiley Frustratedetting up the Java environment variable.

Please have a look at my screenshot.

java.png

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: Error: Could not find or load main class. when running a Talend Job

Hi There,

 

i'm running TOS on my Laptop Win10 and running a TAC server on a separate Server WinServer 2016 Datacenter.

Suddenly on TAC a job has not accepted anymore any further publication and ends as soon as it starts by Error: Could not find or load main class.

And a few hours later another one, others are runing perfectly.

I checked advices from the community in particular the JAVA_HOME story but we don't even have a JAVA_HOME variable on this 7.0.1 install only a Talend_home.

 

Any hint about the issue ? I read somewhere else something about corrupted workspace but all these jobs are working fine on TOS so on TAC server I don't now if the Workspace in itself is existing.

 

thanks for any help.

 

Regards,

Fred 

Moderator

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

Hello Fred,

Are you using talend subscription solution 7.0.1? Does this job work perfectly fine in studio? Are you using tRunJob component in your job?

We need more information to address your issue.

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.