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

 

1 ACCEPTED SOLUTION

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

5 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.
Seven 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.